EnvironmentServiceImpl implements EnvironmentService { @Override public EnvironmentContainerImpl mergeContainer( EnvironmentContainerImpl item ) { EnvironmentContainerImpl environmentContainer = em.merge( item ); em.flush(); em.refresh( environmentContainer ); return environmentContainer; }  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 testMergeContainer() throws Exception { environmentService.mergeContainer( environmentContainer ); verify( entityManager ).merge( environmentContainer ); }