@Test
public void testConvertToBooleanOnDefaultValue() {

  final Object[][] testParameters = new Object[][] {{"no", false, false}, {"n", false, false},
      {"false", false, false}, {"0", false, false}, {"No", false, false}, {"False", false, false},
      {"no", true, false}, {"n", true, false}, {"false", true, false}, {"0", true, false},
      {"No", true, false}, {"False", true, false}, {"yes", false, true}, {"y", false, true},
      {"true", false, true}, {"1", false, true}, {"Yes", false, true}, {"True", false, true},
      {"yes", true, true}, {"y", true, true}, {"true", true, true}, {"1", true, true},
      {"Yes", true, true}, {"True", true, true}};
  assertTrue(ParsingUtils.convertToBoolean(null, true));
  assertFalse(ParsingUtils.convertToBoolean(null, false));
  for (final Object[] testParameter : testParameters) {
    boolean expected = (Boolean) testParameter[2];
    String str = (String) testParameter[0];
    boolean defaultValue = (Boolean) testParameter[1];
    assertEquals(expected, ParsingUtils.convertToBoolean(str, defaultValue));
  }
}