@Test
 // TODO check, this seems wrong
 public void returns_bad_request_for_empty_form() {
   resource.init(null, request, response);
   resource.post(new Form());
   assertThat(response.getStatus().getCode(), is(303));
 }
 @Test
 @Ignore
 public void returns_bad_request_for_contact_with_too_short_name() {
   resource.init(null, request, response);
   Form form = new Form();
   form.add("name", "A");
   resource.post(form);
   assertThat(response.getStatus().getCode(), is(400));
 }
 @Test
 public void creates_registration_template() throws Exception {
   resource.init(null, null, null);
   Contact template = resource.createEntityTemplate();
   assertThat(template.getName(), is(nullValue()));
 }