@Test
public void testGetPrincipalRolesInvalidPrincipal() throws SQLException {

    JDBCConnection jdbcConn = new JDBCConnection(mockConn, true);
    try {
        jdbcConn.getPrincipalRoles("johndoe", null);
        fail();
    } catch (ResourceException exception) {
        assertEquals(exception.getCode(), ResourceException.NOT_FOUND);
        assertEquals(exception.getData().toString(), "{code: 404, message: \"unknown principal - johndoe\"}");
    }
}