@Test
public void testParseByteSize() throws Exception
{

  Assert.assertEquals(ConfigHelper.parseByteSize("999"), 999L);
  Assert.assertEquals(ConfigHelper.parseByteSize("123k"), 123000L);
  Assert.assertEquals(ConfigHelper.parseByteSize("345K"), 345L * 1024);
  Assert.assertEquals(ConfigHelper.parseByteSize("666m"), 666000000L);
  Assert.assertEquals(ConfigHelper.parseByteSize(" 1000 M "), 1024L * 1024000L);
  Assert.assertEquals(ConfigHelper.parseByteSize("4g"), 4000000000L);
  Assert.assertEquals(ConfigHelper.parseByteSize("8G"), 8L * 1024L * 1024L * 1024L);
  Assert.assertEquals(ConfigHelper.parseByteSize("1t"), 1000000000000L);
  Assert.assertEquals(ConfigHelper.parseByteSize("10 T"), 10L * 1024L * 1024L * 1024L * 1024L);
  Assert.assertEquals(ConfigHelper.parseByteSize("10p"), 10000000000000000L);
  Assert.assertEquals(ConfigHelper.parseByteSize("9P"), 9L * 1024L * 1024L * 1024L * 1024L * 1024);
  Assert.assertEquals(ConfigHelper.parseByteSize(" 1e "), 1000000000000000000L);
  Assert.assertEquals(ConfigHelper.parseByteSize(" 1E"), 1L * 1024L * 1024L * 1024L * 1024L * 1024L * 1024L);
}