HickwallMetric implements MetricProxy { @VisibleForTesting protected String getFormattedSrcAddr(String ipAddr) { return ipAddr.replaceAll("\\.", "_"); } HickwallMetric(); @Override void writeBinMultiDataPoint(MetricData rawData); @Override int getOrder();  }
@Test public void testGetFormattedSrcAddr() { String ip = "192.168.0.1"; Assert.assertEquals("192_168_0_1", hickwallMetricProxy.getFormattedSrcAddr(ip)); }