### Question:
ImageExploratoryServiceImpl implements ImageExploratoryService { @Override public List<ImageInfoRecord> getNotFailedImages(String user, String dockerImage, String project, String endpoint) { return imageExploratoryDao.getImages(user, dockerImage, project, endpoint, ImageStatus.CREATED, ImageStatus.CREATING); }  @Override String createImage(UserInfo user, String project, String exploratoryName, String imageName, String imageDescription); @Override void finishImageCreate(Image image, String exploratoryName, String newNotebookIp); @Override List<ImageInfoRecord> getNotFailedImages(String user, String dockerImage, String project, String endpoint); @Override ImageInfoRecord getImage(String user, String name, String project, String endpoint); @Override List<ImageInfoRecord> getImagesForProject(String project);  }### Answer:
@Test public void getCreatedImages() { ImageInfoRecord imageInfoRecord = getImageInfoRecord(); List<ImageInfoRecord> expectedRecordList = Collections.singletonList(imageInfoRecord); when(imageExploratoryDao.getImages(anyString(), anyString(), anyString(), anyString(), anyVararg())) .thenReturn(expectedRecordList); List<ImageInfoRecord> actualRecordList = imageExploratoryService.getNotFailedImages(USER, "someImage", "someProject", "someEndpoint"); assertNotNull(actualRecordList); assertEquals(1, actualRecordList.size()); assertEquals(expectedRecordList, actualRecordList); verify(imageExploratoryDao).getImages(USER, "someImage", "someProject", "someEndpoint", ImageStatus.CREATED, ImageStatus.CREATING); verifyNoMoreInteractions(imageExploratoryDao); }