@Test
public void testCountPolicies() throws Exception {

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