UBLTRDocumentTypes { @Nullable public static Schema getSchemaOfImplementationClass (@Nullable final Class <?> aImplClass) { final EUBLTRDocumentType eDocType = getDocumentTypeOfImplementationClass (aImplClass); return eDocType == null ? null : eDocType.getSchema (); } private  UBLTRDocumentTypes(); @Nonnull @ReturnsMutableCopy static ICommonsSet <String> getAllLocalNames(); @Nullable static EUBLTRDocumentType getDocumentTypeOfLocalName(@Nullable final String sLocalName); @Nullable static Class <?> getImplementationClassOfLocalName(@Nullable final String sLocalName); @Nullable static EUBLTRDocumentType getDocumentTypeOfImplementationClass(@Nullable final Class <?> aImplClass); @Nullable static Schema getSchemaOfLocalName(@Nullable final String sLocalName); @Nullable static Schema getSchemaOfImplementationClass(@Nullable final Class <?> aImplClass);  }
@Test public void testGetSchemaOfImplementationClass () { assertNull (UBLTRDocumentTypes.getDocumentTypeOfImplementationClass (null)); assertNull (UBLTRDocumentTypes.getSchemaOfImplementationClass (null)); assertNull (UBLTRDocumentTypes.getSchemaOfImplementationClass (String.class)); for (final EUBLTRDocumentType eDocType : EUBLTRDocumentType.values ()) { assertSame (eDocType, UBLTRDocumentTypes.getDocumentTypeOfImplementationClass (eDocType.getImplementationClass ())); assertSame (eDocType.getSchema (), UBLTRDocumentTypes.getSchemaOfImplementationClass (eDocType.getImplementationClass ())); assertNotNull (eDocType.getValidator (null)); } }