@Test
public void testResolveCaseStatuses() {

    List<CaseStatus> testStatuses = Arrays.asList(CaseStatus.CANCELLED,
            CaseStatus.CLOSED,
            CaseStatus.OPEN);
    List<Integer> resolvedTestStatuses = ((CaseRuntimeDataServiceImpl) caseRuntimeDataService).resolveCaseStatuses(testStatuses);
    List<Integer> resultStatuses = Arrays.asList(3,
            2,
            1);
    List<Integer> invalidResultStatuses = Arrays.asList(1,
            2,
            3);
    assertTrue(resolvedTestStatuses.equals(resultStatuses));
    assertFalse(resolvedTestStatuses.equals(invalidResultStatuses));
}