@Test
public void testConvertToCapacityOnDefaultValue() {

  final Object[][] testParameters =
      new Object[][] {{"1k", 0L, 1000L}, {"1m", 1L, 1000000L}, {"1g", 2L, 1000000000L},
          {"12K", 0L, 12000L}, {"34M", 1L, 34000000L}, {"56G", 2L, 56000000000L}};
  assertEquals(0L, ParsingUtils.convertToCapacity(null, 0L));
  assertEquals(1L, ParsingUtils.convertToCapacity(null, 1L));
  for (final Object[] testParameter : testParameters) {
    long expected = (Long) testParameter[2];
    String str = (String) testParameter[0];
    long defaultValue = (Long) testParameter[1];
    assertEquals(expected, ParsingUtils.convertToCapacity(str, defaultValue));
  }
}