### Question:
RatingBuilder extends AbstractBeanEntityBuilder implements Builder<Rating> { @EntityAttributeSetter("user") public RatingBuilder setUserId(long uid) { userId = uid; hasUserId = true; return this; } RatingBuilder();  RatingBuilder(EntityType type); static RatingBuilder copy(Rating r); @Override RatingBuilder reset(); long getId(); @EntityAttributeSetter("id") RatingBuilder setId(long id); long getUserId(); @EntityAttributeSetter("user") RatingBuilder setUserId(long uid); long getItemId(); @EntityAttributeSetter("item") RatingBuilder setItemId(long iid); @EntityAttributeClearer("item") RatingBuilder clearItemId(); @EntityAttributeClearer("user") RatingBuilder clearUserId(); double getRating(); @EntityAttributeSetter("rating") RatingBuilder setRating(double r); @EntityAttributeClearer("rating") RatingBuilder clearRating(); long getTimestamp(); @EntityAttributeSetter("timestamp") RatingBuilder setTimestamp(long ts); @EntityAttributeClearer("timestamp") RatingBuilder clearTimestamp(); @Override Rating build();  }### Answer:
@Test public void testSetUserId() { RatingBuilder rb = new RatingBuilder(); rb.setUserId(42); assertThat(rb.getUserId(), equalTo(42L)); }