Map<String, String[]> m = new HashMap<String, String[]>();
m.put("prefix-newvalue", new String[] {"1234"});
Form f = injector.getInstance(ContactForm.class);
f.getFields().get("value").setName("newvalue");
f.bind(m).setPrefix("prefix").setId(null);
f.isValid();
String expected = "<input type=\"text\" name=\"prefix-newvalue\" value=\"1234\" />";
assertEquals(expected, f.get("value").toString());
expected = "<tr><th>Newvalue</th><td><input type=\"text\" name=\"prefix-newvalue\" value=\"1234\" /></td></tr>\n";