@Test
public void testValidatePrincipalDomain() throws Exception {

    
    JDBCConnection jdbcConn = new JDBCConnection(mockConn, false);
    Mockito.when(mockResultSet.next()).thenReturn(true);
    Mockito.when(mockResultSet.getInt(1)).thenReturn(5);
    
    assertTrue(jdbcConn.validatePrincipalDomain("coretech.storage"));
    assertTrue(jdbcConn.validatePrincipalDomain("coretech.storage.db"));
    assertTrue(jdbcConn.validatePrincipalDomain("user.user1"));
    assertTrue(jdbcConn.validatePrincipalDomain("*"));
    jdbcConn.close();
}