### Question:
Xsd2UmlPluginDefault implements Xsd2UmlHostedPlugin { @Override public String nameFromSchemaAttributeName(final QName name) { if (name == null) { throw new IllegalArgumentException("name"); } return name.getLocalPart(); }  @Override final String nameFromComplexTypeExtension(final QName complexType, final QName base); @Override String nameFromSchemaAttributeName(final QName name); @Override String nameFromSchemaElementName(final QName name); @Override String nameFromSchemaTypeName(final QName name); @Override final String nameFromSimpleTypeRestriction(final QName simpleType, final QName base);  }### Answer:
@Test public void testNameFromSchemaAttributeName() throws Exception { Assert.assertEquals("name", defaultPlugin.nameFromSchemaAttributeName(name)); }
@Test(expected = IllegalArgumentException.class) public void testValidNameFromSchemaAttributeName() throws Exception { defaultPlugin.nameFromSchemaAttributeName(null); }