@Test
public void testGetAwsDomains() throws Exception {

    
    JDBCConnection jdbcConn = new JDBCConnection(mockConn, true);
    
    Mockito.when(mockResultSet.next())
        .thenReturn(true)
        .thenReturn(true)
        .thenReturn(true)
        .thenReturn(false);
    Mockito.when(mockResultSet.getString(ZMSConsts.DB_COLUMN_NAME))
        .thenReturn("dom1")
        .thenReturn("dom2")
        .thenReturn("dom3");
    Mockito.when(mockResultSet.getString(ZMSConsts.DB_COLUMN_ACCOUNT))
        .thenReturn("101")
        .thenReturn("102")
        .thenReturn("103");
    
    Map<String, String> awsDomains = jdbcConn.getAwsDomains("getAwsDomains");
    assertEquals(3, awsDomains.size());
    
    assertEquals("101", awsDomains.get("dom1"));
    assertEquals("102", awsDomains.get("dom2"));
    assertEquals("103", awsDomains.get("dom3"));
    
    jdbcConn.close();
}