@Test
public void deleteAppTest() {

    Mockito.when(appRepository.findOne(Mockito.anyLong())).thenReturn(app);
    this.appService.delete(1L);
    Mockito.verify(this.appRepository, Mockito.times(1)).delete(app);
}