@Test
public void getStatus_oneOfSeveralErrors() {

	String ptId = "12345";
	String docString = "<fred></fred>";
	java.sql.Timestamp time = getDate(2012, 10, 11, 13, 14, 15);
	setupEntriesOneErrorOneGood1(ptId, time, docString);
	List<DocStatus> list = repo.getStatus(ptId, "whatever");
	Assert.assertEquals(2, list.size());
	assertDateEquals(list.get(0).getDateGenerated(), 2012, 10, 11, 13, 14, 15);
	Assert.assertEquals(BlueButtonConstants.ERROR_STRING, list.get(0).getStatus());
	Assert.assertEquals(ptId, list.get(0).getPatientId());
	assertDateEquals(list.get(1).getDateGenerated(), 2012, 10, 11, 13, 14, 15);
	Assert.assertEquals(BlueButtonConstants.COMPLETE_STATUS_STRING, list.get(1).getStatus());
	Assert.assertEquals(ptId, list.get(1).getPatientId());
	assertMessageSent(ptId, "whatever");
	assertOnePersisted(ptId);
}