test = new Period(0, 0, 0, 0, 0, Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE);
long intMax = Integer.MAX_VALUE;
BigInteger expected = BigInteger.valueOf(intMax);
expected = expected.add(BigInteger.valueOf(intMax * DateTimeConstants.MILLIS_PER_SECOND));
expected = expected.add(BigInteger.valueOf(intMax * DateTimeConstants.MILLIS_PER_MINUTE));
expected = expected.divide(BigInteger.valueOf(DateTimeConstants.MILLIS_PER_HOUR));
assertTrue(expected.compareTo(BigInteger.valueOf(Long.MAX_VALUE)) < 0);
assertEquals(expected.longValue(), test.toStandardHours().getHours());
test = new Period(0, 0, 0, 0, Integer.MAX_VALUE, 60, 0, 0);
try {