public void testWithFields_RPartial() { DateTime test = new DateTime(2004, 5, 6, 7, 8, 9, 0); DateTime result = test.withFields(new LocalDate(2003, 4, 5)); DateTime expected = new DateTime(2003, 4, 5, 7, 8, 9, 0); assertEquals(expected, result); test = new DateTime(TEST_TIME1); result = test.withFields(null); assertSame(test, result); }