* @return the results of the validation
*/
public <T extends PushConnector> FutureData<PushValidation> validate(T connector) {
FutureData<PushValidation> future = new FutureData<>();
URI uri = newParams().forURL(config.newAPIEndpointURI(VALIDATE));
POST request = config.http().POST(uri, new PageReader(newRequestCallback(future, new PushValidation(), config)))
.form("output_type", connector.type().value());
for (Map.Entry<String, String> e : connector.parameters().verifyAndGet().entrySet()) {
request.form(e.getKey(), e.getValue());
}
performRequest(future, request);