@@ -0,0 +1,1339 @@
+import java.text.DateFormat;%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Date;%0A%0Apublic class Test %7B%0A%0A @Inject%0A private ModuleService moduleService;%0A%0A private Testee testee;%0A %0A @BeforeClass%0A public void before()%7B%0A  testee = Testee.getInstance();%0A %7D%0A %0A @Test%0A public void test() %7B%0A  IMockMe mockMeMock = createMock();%0A  testee.setDependeny(mockMeMock);%0A%0A  moduleService.setModule(IMockMe.class, mockMeMock);%0A%0A  Date result = testee.doSomething();%0A  // assertThat(result ist so oder so);%0A %7D%0A%0A private IMockMe createMock() %7B%0A  IMockMe mock = mockito.makeMock(IMockMe.class);%0A  mockito.mockMethod%7B%7B%0A   mock.getDate();%0A   returns(new Date(o));%0A  %7D%7D;%0A  return mock;%0A %7D%0A%0A private class Testee %7B%0A  %0A  private Testee instance;%0A  %0A  static Testee getInstance()%7B%0A   if (instance == null)%7B%0A    instance = new Testee();%0A   %7D%0A   return instance;%0A  %7D%0A%0A  private IMockMe dependeny;%0A%0A  public Date public void setDependeny(IMockMe dependeny) %7B%0A   this.dependeny = dependeny;%0A  %7D%0A%0A%0A  static doSomething() %7B%0A   return dependeny.getDate();%0A  %7D%0A %7D%0A%0A private interface IMockMe %7B%0A  Date getDate();%0A %7D%0A%0A private class MockMeProductive implements IMockMe %7B%0A  public Date getDate() %7B%0A   return new Date();%0A  %7D%0A %7D%0A%0A private class ModuleService %7B%0A  public %3CT%3E T getModule(Class%3CT%3E clazz) %7B%0A  %7D%0A  public %3CT%3E void setModule(Class%3CT%3E clazz, T service) %7B%0A  %7D%0A %7D%0A%7D%0A

Create Mock.java