### Question:
MetadataValidator { public boolean validate(String pkg, ClassLoader classLoader) { String metadataPath = pkg.replace('.', '/'); String fileName = DMNMetadata.class.getSimpleName(); try (InputStream metadataStream = classLoader.getResourceAsStream(String.format("%s/%s.json", metadataPath, fileName))) { DMNMetadata dmnMetadata = JsonSerializer.OBJECT_MAPPER.readValue(metadataStream, DMNMetadata.class); List<DRGElement> decisions = dmnMetadata.getDecisions(); for (DRGElement decision : decisions) { String className = String.format("%s", decision.getJavaTypeName()); Class<?> aClass = Class.forName(className, true, classLoader); boolean isGenerated = isGenerated(aClass); if (!isGenerated) { return false; } } return true; } catch (Exception e) { LOGGER.debug(e.getMessage()); return false; } }  boolean validate(String pkg, ClassLoader classLoader);  }### Answer:
@Test public void testMetadata() { assertEquals("Invalid metadata", false, validator.validate("com.gs.dmn.runtime.metadata", this.getClass().getClassLoader())); }