ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
ClassLoadingMetaData test = new ClassLoadingMetaData();
CapabilitiesMetaData capabilitiesMetaData = test.getCapabilities();
assertNull(capabilitiesMetaData.getCapabilities());
Capability capability = factory.createModule("test");
capabilitiesMetaData.addCapability(capability);
assertEquals(Collections.singletonList(capability), capabilitiesMetaData.getCapabilities());
ClassLoadingMetaData test2 = new ClassLoadingMetaData();
testEquals(test, test2, false);