### Question:
CSSNumberHelper { @Nullable public static ECSSUnit getMatchingUnitInclPercentage (@Nonnull final String sCSSValue) { ValueEnforcer.notNull (sCSSValue, "CSSValue"); for (final Map.Entry <String, ECSSUnit> aEntry : s_aNameToUnitMap.entrySet ()) if (sCSSValue.endsWith (aEntry.getKey ())) return aEntry.getValue (); return null; } private  CSSNumberHelper(); @Nullable static ECSSUnit getMatchingUnitInclPercentage(@Nonnull final String sCSSValue); @Nullable static ECSSUnit getMatchingUnitExclPercentage(@Nonnull final String sCSSValue); static boolean isNumberValue(@Nullable final String sCSSValue); static boolean isValueWithUnit(@Nullable final String sCSSValue); static boolean isValueWithUnit(@Nullable final String sCSSValue, final boolean bWithPerc); @Nullable static CSSSimpleValueWithUnit getValueWithUnit(@Nullable final String sCSSValue); @Nullable static CSSSimpleValueWithUnit getValueWithUnit(@Nullable final String sCSSValue, final boolean bWithPerc);  }### Answer:
@Test public void testGetMatchingUnitInclPercentage () { for (final ECSSUnit eUnit : ECSSUnit.values ()) { String sText = eUnit.format (5); assertSame (sText, eUnit, CSSNumberHelper.getMatchingUnitInclPercentage (sText)); sText = eUnit.format (2.12345678); assertSame (sText, eUnit, CSSNumberHelper.getMatchingUnitInclPercentage (sText)); } }