List<HDocument> documentList = Arrays.asList(hDocument);
when(documentDAO.getAllByProjectIteration("project", "master"))
.thenReturn(documentList);
GetDocumentListResult result = handler.execute(action, null);
verify(identity).checkLoggedIn();
assertThat(result.getDocuments(), Matchers.hasSize(1));
DocumentInfo documentInfo = result.getDocuments().get(0);
assertThat(documentInfo.getId(),
Matchers.equalTo(new DocumentId(new Long(1), "")));
assertThat(documentInfo.getPath(), Matchers.equalTo("/dot/"));
assertThat(documentInfo.getName(), Matchers.equalTo("a.po"));
}