@Test
void testInvalidResourcesInExtensionDescriptor() {

    InputStream descriptorStream = TestUtil.getResourceAsInputStream(INVALID_RESOURCES_MTAEXT, getClass());
    try {
        parser.parseExtensionDescriptor(descriptorStream);
        fail("Expected exception");
    } catch (ContentException e) {
        assertEquals(MessageFormat.format(Messages.INVALID_TYPE_FOR_KEY, "resources#0#requires#0", Map.class.getSimpleName(),
                                          String.class.getSimpleName()),
                     e.getMessage());
    }
}