@Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = "size is not a valid.*")
public void testValueOfRejectsInvalidNumber()
{

    DataSize.valueOf("1.2x4 B");
}