@Test
public void testGetDetails() throws Exception {

  String id = "application 1";
  AppDetailsController ac = Mockito.mock(AppDetailsController.class);
  AppEntry actual = new AppEntry();
  actual.setName(id);
  when(ac.getDetails(id)).thenReturn(actual);
  final AppEntry result = ac.getDetails(id);
  assertEquals(result, actual);
}