public void serializesReferencesWithinPagedResourceCorrectly() throws Exception {
Person creator = new Person("Dave", "Matthews");
Order order = new Order(creator);
order.add(new LineItem("first"));
order.add(new LineItem("second"));
PersistentEntityResource orderResource = PersistentEntityResource.//
build(order, repositories.getPersistentEntity(Order.class)).//
withLink(new Link("/orders/1")).//
build();