Resource: endpointMethod() + unit-test