CfCompliantUnitMapper { public static String tryFindUnitString(String unit) { if (unitMap.containsKey(unit)) { return unitMap.get(unit); } return unit; } private  CfCompliantUnitMapper(); static String tryFindUnitString(String unit);  }
@Test public void testTryFindCFCompliantUnitString() { assertEquals("degree", CfCompliantUnitMapper.tryFindUnitString("deg")); }
@Test public void testUnknownStaysUnchanged() { assertEquals("barz", CfCompliantUnitMapper.tryFindUnitString("barz")); }