EnvironmentServiceImpl implements EnvironmentService { @Override public void remove( final String id ) { em.remove( em.getReference( LocalEnvironment.class, id ) ); }  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 testRemove() throws Exception { environmentService.remove( ID ); verify( entityManager ).remove( Matchers.anyObject() ); }