@Test(expected = IllegalArgumentException.class)
public void testGetChatApiDao_invalidType() {

    ChatAlyticsConfig config = new ChatAlyticsConfig();
    config.computeConfig.chatConfig = mock(ChatConfig.class);
    ChatAPIFactory.getChatApiDao(config);
}