1 package otherTests; 2 3 import mockit.integration.MockedClass; 4 5 /** 6 * The Class TestedClass. 7 */ 8 public final class TestedClass { 9 10 /** The dependency. */ 11 private final MockedClass dependency; 12 13 /** 14 * Instantiates a new tested class. 15 * 16 * @param dependency 17 * the dependency 18 */ 19 public TestedClass(MockedClass dependency) { 20 this.dependency = dependency; 21 } 22 23 /** 24 * Do something. 25 * 26 * @param i 27 * the i 28 * 29 * @return true, if successful 30 */ 31 public boolean doSomething(int i) { 32 return dependency.doSomething(i); 33 } 34 }