EasyMock.replay(mocks);
Response resp = restService.getFiles((HttpServletRequest) mocks[0], "somePackage", new String[] {"tmp"});
EasyMock.verify(mocks);
Object objDto = assertXmlOkResponse(resp);
assertTrue("objDto should be of type FileListDTO", objDto instanceof FileListDTO);
FileListDTO dto = (FileListDTO) objDto;
assertNotNull("dto.getFile() shouldn't be null", dto.getFile());
for (String file : dto.getFile()) {
assertTrue("retval should contain " + file, retval.contains(file));
}
for (String file : retval) {
assertTrue("dto.getFile() should contain " + file, dto.getFile().contains(file));
}
}