### Question:
DatastoreFileLocationRepository implements FileLocationRepository { @Override public FileLocation findByFileID(String fileID) { log.debug("Requesting file location. File ID : {}", fileID); FileLocationEntity entity = fileLocationEntityRepository.findByFileID(fileID); log.debug("Found file location : {}", entity); return fileLocationMapper.toFileLocation(entity); }  @Override FileLocation findByFileID(String fileID); @Override FileLocation save(FileLocation fileLocation); @Override FileListResponse findAll(FileListRequest request);  }### Answer:
@Test void shouldFindFileLocationEntityByFileId() { Date createdDate = new Date(); long entityId = RandomUtils.nextLong(); given(fileLocationEntityRepository.findByFileID(TestUtils.FILE_ID)) .willReturn(getFileLocationEntity(entityId, createdDate)); FileLocation fileLocation = fileLocationRepository.findByFileID(TestUtils.FILE_ID); verify(fileLocationEntityRepository).findByFileID(TestUtils.FILE_ID); then(fileLocation).isEqualTo(getFileLocation(createdDate)); }