@Test
public void shouldAllowNullNamespaceRegistryWithNonNullTextEncodersSinceRegistryIsNotNeeded() {

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