@Test
public void testGetResourceAccessObject() throws SQLException {

    
    JDBCConnection jdbcConn = new JDBCConnection(mockConn, true);
    ResourceAccess rsrcAccess = jdbcConn.getResourceAccessObject("user.user1", null);
    assertEquals("user.user1", rsrcAccess.getPrincipal());
    List<Assertion> assertions = rsrcAccess.getAssertions();
    assertTrue(assertions.isEmpty());
    
    List<Assertion> roleAssertions = new ArrayList<>();
    Assertion assertion = new Assertion().setAction("update").setRole("role").setResource("resource");
    roleAssertions.add(assertion);
    
    rsrcAccess = jdbcConn.getResourceAccessObject("user.user2", roleAssertions);
    assertEquals("user.user2", rsrcAccess.getPrincipal());
    assertions = rsrcAccess.getAssertions();
    assertEquals(1, assertions.size());
    Assertion testAssertion = assertions.get(0);
    assertEquals("update", testAssertion.getAction());
    assertEquals("role", testAssertion.getRole());
    assertEquals("resource", testAssertion.getResource());
    
    jdbcConn.close();
}