### Question:
PropertyTypes { public static LocalProperty localProperty(String propName) { return localProperty(propName, Converters.stringToString); }  static LocalProperty localProperty(String propName); static LocalProperty localProperty(String propName, Converter converter); static ReadableProperty wwPersonNameOrTempName(); static ReadableProperty wwdocumentDisplayNameProperty();  }### Answer:
@Test public void localPropertyReturnsLocalPropertyWithCorrectPropNameAndStringConverter() throws IOException { LocalProperty instance = localProperty("propName"); Vertex vertex = mock(Vertex.class); VertexProperty vertexProperty = mock(VertexProperty.class); given(vertex.property("propName")).willReturn(vertexProperty); instance.setJson(vertex, null); instance.setJson(vertex, jsn("value")); verify(vertex, times(1)).property("propName", "value"); verify(vertexProperty, times(1)).remove(); }
@Test public void localPropertyReturnsLocalPropertyWithCorrectPropNameAndCorrectConverter() throws IOException { Converter converter = mock(Converter.class); JsonNode value = jsn("value"); given(converter.jsonToTinkerpop(value)).willReturn("converted-value"); LocalProperty instance = localProperty("propName", converter); Vertex vertex = mock(Vertex.class); VertexProperty vertexProperty = mock(VertexProperty.class); given(vertex.property("propName")).willReturn(vertexProperty); instance.setJson(vertex, null); instance.setJson(vertex, value); verify(vertex, times(1)).property("propName", "converted-value"); verify(vertexProperty, times(1)).remove(); }