### Question:
NameValueFactory extends AbstractValueFactory<Name> implements NameFactory { public NamespaceRegistry getNamespaceRegistry() { return namespaceRegistry; } NameValueFactory( NamespaceRegistry namespaceRegistry,
                             TextDecoder decoder,
                             ValueFactory<String> stringValueFactory ); Name create( String value ); Name create( String value,
                        TextDecoder decoder ); Name create( String namespaceUri,
                        String localName ); Name create( String namespaceUri,
                        String localName,
                        TextDecoder decoder ); Name create( int value ); Name create( long value ); Name create( boolean value ); Name create( float value ); Name create( double value ); Name create( BigDecimal value ); Name create( Calendar value ); Name create( Date value ); Name create( DateTime value ); Name create( Name value ); Name create( Path value ); Name create( Path.Segment segment ); Name create( Reference value ); Name create( URI value ); Name create( UUID value ); Name create( byte[] value ); Name create( Binary value ); Name create( InputStream stream,
                        long approximateLength ); Name create( Reader reader,
                        long approximateLength ); NamespaceRegistry getNamespaceRegistry();  }### Answer:
@Test public void shouldProvideAccessToNamespaceRegistryPassedInConstructor() { assertThat(factory.getNamespaceRegistry(), is(registry)); }