@Test
public void testQValueString() throws Exception {

    final Name ntFoo = NameFactoryImpl.getInstance().create(Name.NS_NT_URI, "foo");
    final QValue fooValue = QValueFactoryImpl.getInstance().create(ntFoo);
    assertEquals("fooValue name is name", "nt:foo", JsonCnd.qValueString(fooValue, resolver));
    final Path pathFoo = PathFactoryImpl.getInstance().create(new Path.Element[]{
            PathFactoryImpl.getInstance().getRootElement(),
            PathFactoryImpl.getInstance().createElement(ntFoo),
            PathFactoryImpl.getInstance().createElement(ntFoo)
    });
    final QValue fooPathValue = QValueFactoryImpl.getInstance().create(pathFoo);
    assertEquals("path equals path", "/nt:foo/nt:foo", JsonCnd.qValueString(fooPathValue, resolver));
    final QValue stringValue = QValueFactoryImpl.getInstance().create("some string", PropertyType.STRING);
    assertEquals("string equals string", "some string", JsonCnd.qValueString(stringValue, resolver));
}