@Test
public void shouldNotAllowNullTextEncoderWithNonNullNamespaceRegistry() {

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