@Test
public void shouldUseDelimiterEncoderToEncodeDelimiterBetweenPrefixAndLocalPart() {

    encoder = new Jsr283Encoder();
    name = new BasicName(ModeShapeLexicon.Namespace.URI, "some:name:with:colons");
    assertThat(name.getString(namespaceRegistry, encoder, delimiterEncoder),
               is("mode\\:some\uf03aname\uf03awith\uf03acolons"));
    assertThat(name.getString(null, encoder, delimiterEncoder), is("mode:some\uf03aname\uf03awith\uf03acolons"));
}