public void setDefault() {
    int i;
    int nrargs;
    nrargs = 0;
    allocate( nrargs );
    for ( i = 0; i < nrargs; i++ ) {
      argumentField[i] = "arg" + i;
      argumentParameter[i] = "arg";
      argumentHeader[i] = false;
    }

    int nrquery;
    nrquery = 0;
    allocateQuery( nrquery );
    for ( i = 0; i < nrquery; i++ ) {
      queryField[i] = "query" + i;
      queryParameter[i] = "query";
    }

    fieldName = "result";
    resultCodeFieldName = "";
    responseTimeFieldName = "";
    responseHeaderFieldName = "";
    encoding = DEFAULT_ENCODING;
    postafile = false;

    socketTimeout = String.valueOf( DEFAULT_SOCKET_TIMEOUT );
    connectionTimeout = String.valueOf( DEFAULT_CONNECTION_TIMEOUT );
    closeIdleConnectionsTime = String.valueOf( DEFAULT_CLOSE_CONNECTIONS_TIME );
  }
@Test
  public void setDefault() {
    HTTPPOSTMeta meta = new HTTPPOSTMeta();
    assertNull( meta.getEncoding() );

    meta.setDefault();
    assertEquals( "UTF-8", meta.getEncoding() );
  }