@Test
public void testListAllTimesheet() {

	getResults
			.put("_all_docs?startkey=\"ts_sebastian_\"&endkey=\"ts_sebastian_zzz\"&include_docs=true",
					"{\"total_rows\":9,\"offset\":8,\"rows\":[{\"id\":\"ts_sebastian_2014_07\",\"key\":\"ts_sebastian_2014_07\",\"value\":{\"rev\":\"2-1983e046a14377c433c08711fbb57b28\"},\"doc\":{\"_id\":\"ts_sebastian_2014_07\",\"_rev\":\"2-1983e046a14377c433c08711fbb57b28\",\"entries\":[{\"dayInMonth\":1,\"project\":\"P1\",\"hours\":\"2:31\"},{\"dayInMonth\":2,\"project\":\"P1\",\"hours\":\"1:11\"},{\"dayInMonth\":2,\"project\":\"P2\",\"hours\":\"2:22\"},{\"dayInMonth\":2,\"project\":\"P2\",\"hours\":\"3:33\"},{\"dayInMonth\":14,\"project\":\"P1\",\"hours\":\"1:00\"}]}}]}");
	List<Timesheet> res = timesheetService.listAllTimesheet(context);
	assertEquals(1, getUrls.size());
	assertEquals(0, putUrls.size());
	assertEquals(1, res.size());
	Timesheet ts = res.get(0);
	assertNotNull(ts);
	assertEquals(TimesheetCouch.class, ts.getClass());
	assertEquals("ts_sebastian_2014_07", ((TimesheetCouch) ts).getCouchId());
	assertEquals("2-1983e046a14377c433c08711fbb57b28", ((TimesheetCouch) ts).getCouchRev());
	assertEquals(7, ts.getMonth());
	assertEquals(2014, ts.getYear());
	assertEquals(31, ts.getDays().size());
	assertEquals(1, ts.getDays().get(0).getDay());
	assertEquals(1, ts.getDays().get(0).getEntries().size());
	assertEquals("P1", ts.getDays().get(0).getEntries().get(0).getProject().getName());
	assertEquals("2:31", ts.getDays().get(0).getEntries().get(0).getHours());
	assertEquals(2, ts.getDays().get(1).getDay());
	assertEquals(3, ts.getDays().get(1).getEntries().size());
	assertEquals(14, ts.getDays().get(13).getDay());
	assertEquals(1, ts.getDays().get(13).getEntries().size());
	assertEquals(15, ts.getDays().get(14).getDay());
	assertEquals(0, ts.getDays().get(14).getEntries().size());
}