JpaUnitObjectFactory implements ObjectFactory { @Override public boolean addClass(final Class<?> glueClass) { return true; }  @Override void start(); @Override void stop(); @Override boolean addClass(final Class<?> glueClass); @Override T getInstance(final Class<T> clazz);  }
@Test public void testAddClassReturnsAlwaysTrueAndDoesNotHaveAnyEffects() { final boolean result = factory.addClass(getClass()); assertThat(result, equalTo(Boolean.TRUE)); verifyZeroInteractions(executor); }