NameValueFactory extends AbstractValueFactory<Name> implements NameFactory { @Override public NamespaceRegistry getNamespaceRegistry() { return namespaceRegistryHolder.getNamespaceRegistry(); } NameValueFactory( NamespaceRegistry.Holder namespaceRegistryHolder,
                             TextDecoder decoder,
                             ValueFactories factories ); @Override NameFactory with( ValueFactories valueFactories ); @Override NameFactory with( org.modeshape.jcr.value.NamespaceRegistry.Holder namespaceRegistryHolder ); @Override Name create( String value ); @Override Name create( String value,
                        TextDecoder decoder ); @Override Name create( String namespaceUri,
                        String localName ); @Override Name create( String namespaceUri,
                        String localName,
                        TextDecoder decoder ); @Override Name create( int value ); @Override Name create( long value ); @Override Name create( boolean value ); @Override Name create( float value ); @Override Name create( double value ); @Override Name create( BigDecimal value ); @Override Name create( Calendar value ); @Override Name create( Date value ); @Override Name create( DateTime value ); @Override Name create( Name value ); @Override Name create( Path value ); @Override Name create( Path.Segment segment ); @Override Name create( Reference value ); @Override Name create( URI value ); @Override Name create( UUID value ); @Override Name create( NodeKey value ); @Override Name create( byte[] value ); @Override Name create( BinaryValue value ); @Override Name create( InputStream stream ); @Override NamespaceRegistry getNamespaceRegistry(); @Override Name[] createEmptyArray( int length );  }
@Test public void shouldProvideAccessToNamespaceRegistryPassedInConstructor() { assertThat(nameFactory.getNamespaceRegistry(), is(registry)); }