MetadataTypeService { public MetadataType getMetadataTypeByName(final String item_class_uri, final String type_name) { if (item_class_uri == null) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Cannot get a metadata type with a null item class" + " URI."); } return null; } if (type_name == null) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Cannot get a metadata type with a null type" + " identifier."); } return null; } final ItemClassMetadataTypes item_class_index = this.mapItemClassByUri.get(item_class_uri); if (item_class_index == null) { return null; } return item_class_index.getTypeByName(type_name); } MetadataTypeService(); MetadataType getMetadataTypeById(final String item_class_uri,
         final String type_identifier); MetadataType getMetadataTypeByName(final String item_class_uri,
         final String type_name); Map<String, SolrField> getSolrFields(); final static String DHUS_NAMESPACE; final static String METADATA_TYPES_PROPERTY; final static String METADATA_TYPES_ELEMENT_NAME; }
@Test public void getMetadataTypeByName() { Assert.assertNotNull(service.getMetadataTypeByName( "http: "Satellite number")); }