### Question:
AttributeQueryRequestDto extends AbstractAttributeQueryRequestDto { @Override public AttributeQueryContainerDto sendToSamlEngine(SamlEngineProxy samlEngineProxy) { return samlEngineProxy.generateAttributeQuery(this); } AttributeQueryRequestDto(
        final String requestId,
        final String authnRequestIssuerEntityId,
        final URI assertionConsumerServiceUri,
        final DateTime assertionExpiry,
        final String matchingServiceEntityId,
        final URI attributeQueryUri,
        final DateTime matchingServiceRequestTimeOut,
        final boolean onboarding,
        final LevelOfAssurance levelOfAssurance,
        final PersistentId persistentId,
        final Optional<Cycle3Dataset> cycle3Dataset,
        final Optional<List<UserAccountCreationAttribute>> userAccountCreationAttributes,
        final String encryptedMatchingDatasetAssertion,
        final String encryptedAuthnAssertion); static AttributeQueryRequestDto createCycle3MatchingServiceRequest(
            String requestId,
            String encryptedMatchingDatasetAssertion,
            String encryptedAuthnAssertion,
            Cycle3Dataset cycle3Assertion,
            String authnRequestIssuerEntityId,
            URI assertionConsumerServiceUri,
            String matchingServiceEntityId,
            DateTime matchingServiceRequestTimeOut,
            LevelOfAssurance levelOfAssurance,
            Optional<List<UserAccountCreationAttribute>> userAccountCreationAttributes,
            PersistentId persistentId,
            DateTime assertionExpiry,
            URI attributeQueryUri,
            boolean onboarding); static AttributeQueryRequestDto createCycle01MatchingServiceRequest(
            String requestId,
            String encryptedMatchingDatasetAssertion,
            String encryptedAuthnAssertion,
            String authnRequestIssuerEntityId,
            URI assertionConsumerServiceUri,
            String matchingServiceEntityId,
            DateTime matchingServiceRequestTimeOut,
            LevelOfAssurance levelOfAssurance,
            PersistentId persistentId,
            DateTime assertionExpiry,
            URI attributeQueryUri,
            boolean onboarding); static AttributeQueryRequestDto createUserAccountRequiredMatchingServiceRequest(
            String requestId,
            String encryptedMatchingDatasetAssertion,
            String authnStatementAssertion,
            Optional<Cycle3Dataset> cycle3Assertion,
            String authnRequestIssuerEntityId,
            URI assertionConsumerServiceUri,
            String matchingServiceEntityId,
            DateTime matchingServiceRequestTimeOut,
            LevelOfAssurance levelOfAssurance,
            List<UserAccountCreationAttribute> userAccountCreationAttributes,
            PersistentId persistentId,
            DateTime assertionExpiry,
            URI attributeQueryUri,
            boolean onboarding); String getEncryptedAuthnAssertion(); @Nullable String getEncryptedMatchingDatasetAssertion(); @Override AttributeQueryContainerDto sendToSamlEngine(SamlEngineProxy samlEngineProxy); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void sendToSamlEngine() throws Exception { when(samlEngineProxy.generateAttributeQuery(attributeQueryRequestDto)).thenReturn(ATTRIBUTE_QUERY_CONTAINER_DTO); AttributeQueryContainerDto actual = attributeQueryRequestDto.sendToSamlEngine(samlEngineProxy); assertThat(actual).isEqualTo(ATTRIBUTE_QUERY_CONTAINER_DTO); }