@Test
public void namespaceWithSpaceAtEndWorks() throws Exception {

    this.setRevisionTo("5fdcffa9ccd17743d5498cab0914081fc33606e9");
    NodeTypeId id = new NodeTypeId("http://www.example.org ", "id", false);
    assertFalse(this.repository.exists(id));
    this.repository.flagAsExisting(id);
    assertTrue(this.repository.exists(id));
    assertNotNull(this.repository.getElement(id));
}