@Test
public void testSupportTypes() throws Exception {

    Set<MediaType> supportedTypes = sourceCodeParser.getSupportedTypes(new ParseContext());
    assertTrue(supportedTypes.contains(new MediaType("text", "x-java-source")));
    assertTrue(supportedTypes.contains(new MediaType("text", "x-groovy")));
    assertTrue(supportedTypes.contains(new MediaType("text", "x-c++src")));
    assertFalse(sourceCodeParser.getSupportedTypes(new ParseContext()).contains(new MediaType("text", "html")));
}