Complete DebugEndpointResourceTypeHandler with test cases.