### Question:
TabularInstanceVisualizer { public String visualizeInstance(TabularInstance instance) { final List<String> result = new ArrayList<>(); for (int i = 0; i < instance.getFeatures().length; i++) { final GenericColumn column = instance.getFeatures()[i]; final Serializable transformedValue = instance.getTransformedValue(column); result.add(column.getName() + "='" + transformedValue.toString() + "'"); } if (instance.getTargetFeature() != null && instance.getTransformedLabel() != null) { result.add("WITH LABEL " + instance.getTargetFeature().getName() + "='" + instance.getTransformedLabel().toString() + "'"); } return String.join(System.lineSeparator(), result.toArray(new String[0])); }  String visualizeInstance(TabularInstance instance); String visualizeResult(AnchorResult<TabularInstance> anchorResult); String visualizeGlobalResults(List<AnchorResult<TabularInstance>> anchorResults);  }### Answer:
@Test public void testVisualizeInstance() throws IOException { TabularInstanceVisualizer tabularInstanceVisualizer = new TabularInstanceVisualizer(); AnchorTabular tabular = new AnchorTabularBuilderByName() .addColumn(new StringColumn("name")) .addTargetColumn(new StringColumn("attr1")) .addColumn(new StringColumn("attr2")) .addColumn(new StringColumn("attr3")) .build(getTestCSV()); String instanceOutput = tabularInstanceVisualizer.visualizeInstance(tabular.getTabularInstances()[0]); String expectedOutput = "name='testrow1'" + System.getProperty("line.separator") + "attr2='anotherattr1'" + System.getProperty("line.separator") + "attr3='thirdattr1'" + System.getProperty("line.separator") + "WITH LABEL attr1='someattr1'"; assertEquals(expectedOutput, instanceOutput); }