@Test
public void testLengthOfMonth() {

  LocalDate day = LocalDate.of(2011, 1, 3);
  int packed = pack(day);
  assertEquals(31, lengthOfMonth(packed));
  day = LocalDate.of(2011, 9, 3);
  packed = pack(day);
  assertEquals(30, lengthOfMonth(packed));
}