@Test
public void shouldNotAllowNullTextEncoderForDelimiterWithNonNullNamespaceRegistry() {

    NamespaceRegistry registry = mock(NamespaceRegistry.class);
    TextEncoder encoder = mock(TextEncoder.class);
    assertThat(root.getString(registry, encoder, (TextEncoder)null), is("/"));
}