Company implements Serializable { public String title() { return title; }  @SuppressWarnings("SimplifiableIfStatement") @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); String id(); Company id(String id); SafeCalendar beginDate(); Company beginDate(SafeCalendar beginDate); CareerLevel careerLevel(); Company careerLevel(CareerLevel careerLevel); CompanySize companySize(); Company companySize(CompanySize companySize); String description(); Company description(String description); SafeCalendar endDate(); Company endDate(SafeCalendar endDate); FormOfEmployment formOfEmployment(); Company formOfEmployment(FormOfEmployment formOfEmployment); List<Industry> industries(); Company industries(List<Industry> industries); String name(); Company name(String name); String title(); Company title(String title); boolean untilNow(); Company untilNow(boolean untilNow); String url(); Company url(String url); String tag(); Company tag(String tag); Discipline discipline(); Company discipline(Discipline discipline); boolean isFilledForAddCompany();  }
@Test public void setTitleThrowsIfLimitExited() throws Exception { Company company = new Company(); try { company.title(leftPad("longTitle", Company.LIMIT_TITLE + 1, '*')); fail(); } catch (IllegalArgumentException e) { assertThat(e.getMessage()).isEqualTo("Argument Title too long. " + Company.LIMIT_TITLE + " characters is the maximum."); } }