@Test
public void testFormResource() throws Exception
{
HttpClient client = new HttpClient();
PostMethod method = new PostMethod(TEST_URI);
method.addRequestHeader("custom-header", "42");
method.addParameter(BOOLEAN_VALUE_FIELD, "true");
method.addParameter(NAME_FIELD, "This is My Name");
method.addParameter(DOUBLE_VALUE_FIELD, "123.45");
method.addParameter(LONG_VALUE_FIELD, "566780");
method.addParameter(INTEGER_VALUE_FIELD, "3");