}
@Test(dataProvider="Pad")
public void test_pad_NOT_NEGATIVE(int minPad, int maxPad, long value, String result) throws Exception {
printContext.setDateTime(new MockFieldValue(DAY_OF_MONTH, value));
NumberPrinterParser pp = new NumberPrinterParser(DAY_OF_MONTH, minPad, maxPad, SignStyle.NOT_NEGATIVE);
try {
pp.print(printContext, buf);
if (result == null || value < 0) {
fail("Expected exception");
}
assertEquals(buf.toString(), result);
} catch (DateTimeException ex) {