@Test
public void testCountRoleMembers() throws Exception {

    
    JDBCConnection jdbcConn = new JDBCConnection(mockConn, true);
    Mockito.when(mockResultSet.getInt(1)).thenReturn(5).thenReturn(7)
        .thenReturn(4); // return domain/role id/count
    
    Mockito.when(mockResultSet.next()).thenReturn(true);
    
    assertEquals(jdbcConn.countRoleMembers("my-domain", "role1"), 4);
    jdbcConn.close();
}