### Question:
CancelPaymentMethodValidatorImpl extends AbstractMethodValidator { @Override public String getMethodName() { return METHOD_NAME; } @Autowired protected  CancelPaymentMethodValidatorImpl(List<CancelPaymentHeaderValidator> headerValidators,
                                               List<CancelPaymentBodyValidator> bodyValidators); @Override String getMethodName();  }### Answer:
@Test void init() { List<CancelPaymentHeaderValidator> headerValidators = new ArrayList<>(); List<CancelPaymentBodyValidator> bodyValidators = new ArrayList<>(); CancelPaymentMethodValidatorImpl methodValidator = new CancelPaymentMethodValidatorImpl(headerValidators, bodyValidators); assertEquals("_cancelPayment", methodValidator.getMethodName()); assertSame(headerValidators, methodValidator.getValidatorWrapper().getHeaderValidators()); assertSame(bodyValidators, methodValidator.getValidatorWrapper().getBodyValidators()); assertTrue(methodValidator.getValidatorWrapper().getQueryParameterValidators().isEmpty()); }