@Test
public void testGetPrincipalRolesNoRuleMembers() throws SQLException {

    JDBCConnection jdbcConn = new JDBCConnection(mockConn, true);
    Mockito.when(mockResultSet.getInt(1))
            .thenReturn(1);  // Principal id will be 1
    Mockito.when(mockResultSet.next())
            .thenReturn(true) // True for getting principal_id
            .thenReturn(false); // Not member of any roles
    DomainRoleMember domainRoleMember = jdbcConn.getPrincipalRoles("johndoe", null);
    assertEquals(domainRoleMember.getMemberName(), "johndoe");
    assertEquals(domainRoleMember.getMemberRoles().size(), 0);
}