public void testAdd(CompanyService companyService) {
    Company c = CompanyBuilder.buildSimple();
    c.setId(555);
    Company ret = companyService.add(c);
    validateCompany(ret, 555);

    Company ret2 = companyService.get(555);
    validateCompany(ret2, 555);
  }
 public void testAddNegative(CompanyService companyService) {
   testAdd(companyService);
   Company c = CompanyBuilder.buildSimple();
   try {
     c.setId(555);
     companyService.add(c);
     companyService.add(c);
   } catch (IdDuplicateException e) {
     assertThat(e.getClass().getName(), is(IdDuplicateException.class.getName()));
     return;
   } catch (Throwable t) {
     assertThat(t.getCause().getMessage(), is("Company id duplicate"));
     return;
   }
   fail("should not get here");
 }