@Test
public void testCountAssertions() throws Exception {

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