@Test
public void testConvertToLongOnDefaultValue() {

  final Object[][] testParameters = new Object[][] {{"1", 0L, 1L}, {"10", 1L, 10L},
      {"100", 2L, 100L}, {"Not01", 0L, 0L}, {"Not02", 1L, 1L}, {"Not03", 2L, 2L}};
  assertEquals(0, ParsingUtils.convertToLong(null, 0));
  assertEquals(1, ParsingUtils.convertToLong(null, 1));
  for (final Object[] testParameter : testParameters) {
    long expected = (Long) testParameter[2];
    String val = (String) testParameter[0];
    long defaultValue = (Long) testParameter[1];
    assertEquals(expected, ParsingUtils.convertToLong(val, defaultValue));
  }
}