@Test
public void testToString() {

    final ForcedRoot.JsonKeys keys = ForcedRoot.keys();
    final String path = "/correct/path";
    final String primaryType = "primaryType";
    final List<String> mixinTypes = Collections.singletonList("mixinType");
    final ForcedRoot root = new ForcedRoot()
            .withPath(path)
            .withPrimaryType(primaryType)
            .withMixinTypes(mixinTypes.get(0));
    final String jsonString = root.toString();
    final String expectString = key(keys.path(), path)
            .key(keys.primaryType(), primaryType)
            .key(keys.mixinTypes(), mixinTypes)
            .get().toString();
    assertEquals("expect json string for toString", expectString, jsonString);
}