@Test
public void testGenerateMethodWithsupportedMediaType() {
try {
ExternalServicesFacade externalServicesFacade = new ExternalServicesFacade();
Map<String, Object> parameterSettings = new HashMap<String, Object>();
parameterSettings.put("apikey", "04490000a72fe7ec5cb3497f14e77f338c86f2fe");
parameterSettings.put("licenseID", "g6h9zamsdtwhb93nc247ecrs");
externalServicesFacade.setParameterSetting(parameterSettings);
UIMABaseMetadataGenerator baseMetadataGenerator = new UIMABaseMetadataGenerator(externalServicesFacade);
String textToAnalyze = TEXT_TO_ANALYZE;
MGraph mGraph = new SimpleMGraph();
GraphNode node = new GraphNode(new UriRef("test"), mGraph);
baseMetadataGenerator.generate(node, textToAnalyze.getBytes(), MediaType.TEXT_PLAIN_TYPE);