EnvironmentServiceImpl implements EnvironmentService { @Override public LocalEnvironment find( final String id ) { LocalEnvironment localEnvironment = em.find( LocalEnvironment.class, id ); if ( localEnvironment != null && !localEnvironment.isDeleted() ) { return localEnvironment; } return null; }  void setEntityManager( EntityManager em ); @Override LocalEnvironment find( final String id ); @Override List<LocalEnvironment> getAll(); @Override List<LocalEnvironment> getDeleted(); @Override void persist( final Environment item ); @Override void remove( final String id ); @Override LocalEnvironment merge( final LocalEnvironment item ); @Override EnvironmentContainerImpl mergeContainer( EnvironmentContainerImpl item );  }
@Test public void testFind() throws Exception { environmentService.find( ID ); verify( entityManager ).find( LocalEnvironment.class, ID ); }