@Test
public void testGetAll() throws Exception
{

    environmentService.getAll();
    verify( entityManager ).createQuery( "select e from LocalEnvironment e where e.deleted = false", LocalEnvironment.class );
    verify( query ).getResultList();
}