CreditRating implements ImmutableBean, Serializable { public static CreditRating of(final String rating, final String agencyName, final boolean isLongTerm) { return new CreditRating(rating, null, agencyName, isLongTerm); } @ImmutableConstructor private  CreditRating(final String rating, final String ratingDescription, final String agencyName,
      final boolean isLongTerm); static CreditRating of(final String rating, final String agencyName, final boolean isLongTerm); static CreditRating of(final String rating, final String ratingDescription, final String agencyName,
      final boolean isLongTerm); String getRating(); String getRatingDescription(); static CreditRating.Meta meta(); @Override CreditRating.Meta metaBean(); @Override Property<R> property(String propertyName); @Override Set<String> propertyNames(); String getAgencyName(); boolean isLongTerm(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullRating1() { CreditRating.of(null, AGENCY, IS_LONG_TERM); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullRating2() { CreditRating.of(null, DESCRIPTION, AGENCY, IS_LONG_TERM); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullDescription() { CreditRating.of(RATING, null, AGENCY, IS_LONG_TERM); }