### Question:
AuditEventPageRequest extends CustomPageRequest { public static AuditEventPageRequest copy(final AuditEventPageRequest source) { notNull(source, "source cannot be null"); final AuditEventPageRequest copy = new AuditEventPageRequest(); BeanUtils.copyProperties(source, copy); return copy; } AuditEventPageRequest(); ZonedDateTime getFrom(); void setFrom(final ZonedDateTime from); ZonedDateTime getTo(); void setTo(final ZonedDateTime to); String getType(); void setType(final String type); static AuditEventPageRequest copy(final AuditEventPageRequest source); AuditEventPageRequest withIncrementedLimit(); @Override MutableUri updateWithPageParams(final MutableUri builder); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testCopy() { AuditEventPageRequest request = new AuditEventPageRequest(); request.setFrom(FROM); request.setTo(TO); request.setLimit(LIMIT); request.setOffset(OFFSET); request.setType(EVENT_TYPE); AuditEventPageRequest copy = AuditEventPageRequest.copy(request); assertThat(request, is(sameBeanAs(copy))); }
@Test(expectedExceptions = NullPointerException.class) public void testCopyNull() { AuditEventPageRequest.copy(null); }