@Test
public void testListAllProject() {

	getResults
			.put("_all_docs?startkey=\"project_\"&endkey=\"project_zzz\"",
					"{\"total_rows\":9,\"offset\":2,\"rows\":[{\"id\":\"project_P1\",\"key\":\"project_P1\",\"value\":{\"rev\":\"1-967a00dff5e02add41819138abb3284d\"}},{\"id\":\"project_P2\",\"key\":\"project_P2\",\"value\":{\"rev\":\"1-967a00dff5e02add41819138abb3284d\"}}]}");
	List<Project> res = projectService.listAllProject(new HashMap<String, Object>());
	assertEquals(1, getUrls.size());
	assertEquals("_all_docs?startkey=\"project_\"&endkey=\"project_zzz\"", getUrls.get(0));
	assertEquals(2, res.size());
	assertEquals("P1", res.get(0).getName());
	assertEquals("P2", res.get(1).getName());
	assertEquals(ProjectCouch.class, res.get(1).getClass());
	assertEquals("project_P2", ((ProjectCouch) res.get(1)).getCouchId());
	assertEquals("1-967a00dff5e02add41819138abb3284d", ((ProjectCouch) res.get(1)).getCouchRev());
}