### Question:
SamplingPointUtil { static String createPath(String archivRoot, String sensorName, int year, int month, char key) { final StringBuilder builder = new StringBuilder(256); builder.append(archivRoot); builder.append("/smp/"); builder.append(sensorName); builder.append('/'); builder.append(year); builder.append('/'); builder.append(sensorName); builder.append("-smp-"); builder.append(year); builder.append('-'); builder.append(monthFormat.format(month)); builder.append('-'); builder.append(key); builder.append(".json"); return builder.toString(); }    }### Answer:
@Test public void testCreateOutputPath() { final String archiveRoot = "/archive"; String path = SamplingPointUtil.createPath(archiveRoot, "atsr.2", 2008, 5, 'a'); assertEquals("/archive/smp/atsr.2/2008/atsr.2-smp-2008-05-a.json", path); path = SamplingPointUtil.createPath(archiveRoot, "atsr.3", 2010, 11, 'b'); assertEquals("/archive/smp/atsr.3/2010/atsr.3-smp-2010-11-b.json", path); }