@Test
public void testParseByteSizeInvalid()
{

  try
  {
    ConfigHelper.parseByteSize("");
    Assert.fail();
  }
  catch (InvalidConfigException e) {/*OK*/}
  try
  {
    ConfigHelper.parseByteSize("1mega");
    Assert.fail();
  }
  catch (InvalidConfigException e) {/*OK*/}
  try
  {
    ConfigHelper.parseByteSize("100MB");
    Assert.fail();
  }
  catch (InvalidConfigException e) {/*OK*/}
  try
  {
    ConfigHelper.parseByteSize("1.5g");
    Assert.fail();
  }
  catch (InvalidConfigException e) {/*OK*/}
  try
  {
    ConfigHelper.parseByteSize("-12k");
    Assert.fail();
  }
  catch (InvalidConfigException e) {/*OK*/}
}