@Test
public void testValidateDataSize() {

    final String input1 = "10 MB";
    final String parsed1 = ComponentUtils.validateDataUnitValue(input1);
    Assert.assertEquals(input1, parsed1);
    final String input2 = "10 mb";
    final String parsed2 = ComponentUtils.validateDataUnitValue(input2);
    Assert.assertEquals("10 MB", parsed2);
    final String input3 = "10 MB abc";
    final String parsed3 = ComponentUtils.validateDataUnitValue(input3);
    Assert.assertEquals("10 MB", parsed3);
    final String input4 = "INVALID";
    try {
        ComponentUtils.validateDataUnitValue(input4);
        Assert.fail("Should have thrown exception");
    } catch (Exception e) {
    }
    final String input5 = "10.0 MB";
    final String parsed5 = ComponentUtils.validateDataUnitValue(input5);
    Assert.assertEquals(input5, parsed5);
}