@Test
public void findEnvironment() {

     Mockito.when(this.environmentRepository.findOne(Mockito.any(Long.class))).thenReturn(environment);
     Environment environmentResp = environmentService.find(1L);
     assertEquals(environmentResp.getId(), environment.getId());
     Mockito.verify(this.environmentRepository, Mockito.times(1)).findOne(Mockito.any(Long.class));
}