### Question:
UnitParser { public static Unit checkUnit(String value) { for (Unit unit : units) { String nonNumberPart = value.replaceAll("[0-9\\,\\.\\-Ee\\+]", ""); nonNumberPart = nonNumberPart.trim(); if (nonNumberPart.toLowerCase().equals(unit.getName()) || unit.getAbbreviations().contains(nonNumberPart.toLowerCase())) { return unit; } } return null; }  static List<Unit> getUnits(); static Unit getUnit(String name); static Double parseUnit(String value, String unitInformation); static Double transformUnit(String value, Unit unit); static Unit checkUnit(String value); static Unit parseUnitFromHeader(String header); static List<Unit> units; }### Answer:
@Test public void testCheckUnit() { assertNotNull(UnitParser.checkUnit("100 km")); assertNotNull(UnitParser.checkUnit("100 million")); }