/** * Resource was initialized with ID = "a9affe45-5cc4-148f-ce4d-f585c7999e05". The test verifies the Hook with this * ID is returned out of all hooks returned by parent.list(); */ @Test public void testGet() { setUriInfo(setUpBasicUriExpectations()); resource.setParent(getCollectionResourceMock()); Hook hook = resource.get(); assertEquals(EVENT_2_NAME, hook.getEventName()); }
to.setEventName(from.getEventName());