assertEquals("Wrong value", "a=a1&b=b1", result);
}
@Test
public void testWriteForm() throws Exception {
Form form = new Form();
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ferp.writeTo(form.set("a", "a1").set("b", "b1"), Form.class, Form.class,
new Annotation[0], MediaType.APPLICATION_FORM_URLENCODED_TYPE,
new MetadataMap<String, Object>(), bos);
String result = bos.toString();
assertEquals("Wrong value", "a=a1&b=b1", result);
}