VisualizerUtility { public static String convertToJson(Object object) { String json = ""; ObjectMapper objectMapper = new ObjectMapper(); try { json = objectMapper.writeValueAsString(object); } catch (JsonProcessingException e) { e.printStackTrace(); } return json; }  static String convertToJson(Object object); static String convertToDate(long timestamp); static Properties getMetricConsumerProps(Config metricConsumerConfig); static Config getConfig(String configName);  }
@Test public void testConvertJson() { AnomalyModel anomalyModel = AnomalyModel.newBuilder().build(); assertNotNull(convertToJson(anomalyModel)); }