XmlElementCount extends AbstractDosPlugin { @Override public void createTamperedRequest() { String soapMessage = this.getOptionTextAreaSoapMessage().getValue(); String soapMessageFinal = ""; StringBuilder sb = new StringBuilder( "" ); for ( int i = 1; i < ( numberOfElements.getValue() ); i++ ) { sb.append( elementToInsert.getValue() ); } soapMessageFinal = this.getOptionTextAreaSoapMessage().replacePlaceholderWithPayload( soapMessage, sb.toString() ); Map<String, String> httpHeaderMap = new HashMap<String, String>(); for ( Map.Entry<String, String> entry : getOriginalRequestHeaderFields().entrySet() ) { httpHeaderMap.put( entry.getKey(), entry.getValue() ); } this.setTamperedRequestObject( httpHeaderMap, getOriginalRequest().getEndpoint(), soapMessageFinal ); }  @Override void initializeDosPlugin(); AbstractOptionInteger getOptionNumberOfElements(); @Override OptionTextAreaSoapMessage.PayloadPosition getPayloadPosition(); void initData(); @Override void createTamperedRequest();  }
@Test public void testCreateTamperedRequest() { t.testCreateTamperedRequest( attackPlugin ); }