@@ -0,0 +1,1573 @@
+package com.github.aureliano.damihilogs.converter.output;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0Aimport java.util.Properties;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport com.github.aureliano.damihilogs.config.output.OutputConfigTypes;%0Aimport com.github.aureliano.damihilogs.config.output.TwitterOutputConfig;%0A%0Apublic class TwitterOutputConverterTest %7B%0A%0A%09@Test%0A%09public void testConvert() %7B%0A%09%09Map%3CString, Object%3E data = new HashMap%3CString, Object%3E();%0A%09%09Properties metadata = new Properties();%0A%09%09%0A%09%09metadata.setProperty(%22test%22, %22test%22);%0A%09%09metadata.setProperty(%22goal%22, %22CAM%22);%0A%09%09%0A%09%09data.put(%22metadata%22, metadata);%0A%09%09data.put(%22consumerKey%22, %22consumer-key%22);%0A%09%09data.put(%22consumerSecret%22, %22consumer-secret%22);%0A%09%09data.put(%22oauthToken%22, %22oauth-token%22);%0A%09%09data.put(%22oauthTokenSecret%22, %22oauth-token-secret%22);%0A%09%09data.put(%22tweet%22, %22My status update%22);%0A%09%09%0A%09%09data.put(%22type%22, OutputConfigTypes.TWITTER_OUTPUT);%0A%09%09%0A%09%09TwitterOutputConfig conf = new TwitterOutputConverter().convert(data);%0A%09%09%0A%09%09Assert.assertEquals(%22test%22, conf.getMetadata(%22test%22));%0A%09%09Assert.assertEquals(%22CAM%22, conf.getMetadata(%22goal%22));%0A%0A%09%09Assert.assertEquals(%22My status update%22, conf.getTweet());%0A%09%09Assert.assertEquals(%22consumer-key%22, conf.getConsumerKey());%0A%09%09Assert.assertEquals(%22consumer-secret%22, conf.getConsumerSecret());%0A%09%09Assert.assertEquals(%22oauth-token%22, conf.getOauthToken());%0A%09%09Assert.assertEquals(%22oauth-token-secret%22, conf.getOauthTokenSecret());%0A%09%7D%0A%09%0A%09@Test%0A%09public void testId() %7B%0A%09%09Assert.assertEquals(OutputConfigTypes.TWITTER_OUTPUT.name(), new TwitterOutputConverter().id());%0A%09%7D%0A%7D

Create Twitter output configuration converter.