### Question:
KnownAmountRateComputation implements RateComputation, ImmutableBean, Serializable { public static KnownAmountRateComputation of(CurrencyAmount amount) { return new KnownAmountRateComputation(amount); } private  KnownAmountRateComputation(
      CurrencyAmount amount); static KnownAmountRateComputation of(CurrencyAmount amount); @Override void collectIndices(ImmutableSet.Builder<Index> builder); static TypedMetaBean<KnownAmountRateComputation> meta(); @Override TypedMetaBean<KnownAmountRateComputation> metaBean(); CurrencyAmount getAmount(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void coverage() { KnownAmountRateComputation test = KnownAmountRateComputation.of(GBP_P1000); coverImmutableBean(test); KnownAmountRateComputation test2 = KnownAmountRateComputation.of(GBP_P1000.plus(100)); coverBeanEquals(test, test2); }
@Test public void test_serialization() { KnownAmountRateComputation test = KnownAmountRateComputation.of(GBP_P1000); assertSerialization(test); }