@Test
public void testGetChatApiDao() {

    ChatAlyticsConfig config = new ChatAlyticsConfig();
    config.computeConfig.apiDateFormat = "YYYY-MM-dd";
    config.computeConfig.chatConfig = new SlackConfig();
    assertTrue(ChatAPIFactory.getChatApiDao(config) instanceof JsonSlackDAO);
    config.computeConfig.chatConfig = new SlackBackfillerConfig();
    assertTrue(ChatAPIFactory.getChatApiDao(config) instanceof JsonSlackDAO);
    config.computeConfig.chatConfig = new HipChatConfig();
    assertTrue(ChatAPIFactory.getChatApiDao(config) instanceof JsonHipChatDAO);
    config.computeConfig.chatConfig = new LocalTestConfig();
    assertTrue(ChatAPIFactory.getChatApiDao(config) instanceof LocalChatDao);
}