@Test
    public void testNoLoginMatch() {
        Account account = new Account("m", "t");
        UserComparator comparator = new UserComparator(account);

        assertTrue(comparator.compare(createUser("a"),
                createUser("c")) < 0);
        assertTrue(comparator.compare(createUser("db"),
                createUser("da")) > 0);
    }
Test sorting of users that don't match login
app/src/androidTest/java/com/github/pockethub/android/tests/user/UserComparatorTest.java