@Test
public void testConvertToIntOnDefaultValue() {

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