### Question:
CSSNumberHelper { public static boolean isValueWithUnit (@Nullable final String sCSSValue) { return isValueWithUnit (sCSSValue, true); } 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 testIsValueWithUnit () { assertTrue (CSSNumberHelper.isValueWithUnit ("50%", true)); assertTrue (CSSNumberHelper.isValueWithUnit ("50mm", true)); assertTrue (CSSNumberHelper.isValueWithUnit ("50cm", true)); assertTrue (CSSNumberHelper.isValueWithUnit ("50ex", true)); assertTrue (CSSNumberHelper.isValueWithUnit (" 50ex ", true)); assertTrue (CSSNumberHelper.isValueWithUnit (" 50ex ", false)); assertTrue (CSSNumberHelper.isValueWithUnit (" 50 ex ", false)); assertTrue (CSSNumberHelper.isValueWithUnit (" 50 s ", false)); assertTrue (CSSNumberHelper.isValueWithUnit (" 50 ms ", false)); assertFalse (CSSNumberHelper.isValueWithUnit (" 50 xs ", false)); assertFalse (CSSNumberHelper.isValueWithUnit ("50%", false)); assertFalse (CSSNumberHelper.isValueWithUnit ("", false)); assertFalse (CSSNumberHelper.isValueWithUnit ("", true)); assertFalse (CSSNumberHelper.isValueWithUnit (" ", false)); assertFalse (CSSNumberHelper.isValueWithUnit (" ", true)); assertFalse (CSSNumberHelper.isValueWithUnit (" mm ", true)); assertFalse (CSSNumberHelper.isValueWithUnit (" % ", true)); assertFalse (CSSNumberHelper.isValueWithUnit (" 50 xyz ", true)); assertFalse (CSSNumberHelper.isValueWithUnit (" 50 gd ", true)); assertFalse (CSSNumberHelper.isValueWithUnit ("50gd", true)); }