@Test
public void testCountServiceIdentities() throws Exception {

    
    JDBCConnection jdbcConn = new JDBCConnection(mockConn, true);
    Mockito.doReturn(5).when(mockResultSet).getInt(1); // return domain id/count (same)
    Mockito.when(mockResultSet.next()).thenReturn(true);
    assertEquals(jdbcConn.countServiceIdentities("my-domain"), 5);
    jdbcConn.close();
}