### Question:
UnitParameterSensitivity implements ImmutableBean, Serializable { public static UnitParameterSensitivity of( MarketDataName<?> marketDataName, List<? extends ParameterMetadata> parameterMetadata, DoubleArray sensitivity) { return new UnitParameterSensitivity(marketDataName, parameterMetadata, sensitivity, null); } private  UnitParameterSensitivity(
      MarketDataName<?> marketDataName,
      List<? extends ParameterMetadata> parameterMetadata,
      DoubleArray sensitivity,
      List<ParameterSize> parameterSplit); static UnitParameterSensitivity of(
      MarketDataName<?> marketDataName,
      List<? extends ParameterMetadata> parameterMetadata,
      DoubleArray sensitivity); static UnitParameterSensitivity of(MarketDataName<?> marketDataName, DoubleArray sensitivity); static UnitParameterSensitivity of(
      MarketDataName<?> marketDataName,
      List<? extends ParameterMetadata> parameterMetadata,
      DoubleArray sensitivity,
      List<ParameterSize> parameterSplit); static UnitParameterSensitivity combine(
      MarketDataName<?> marketDataName,
      UnitParameterSensitivity... sensitivities); int getParameterCount(); ParameterMetadata getParameterMetadata(int parameterIndex); int compareKey(UnitParameterSensitivity other); CurrencyParameterSensitivity multipliedBy(Currency currency, double amount); UnitParameterSensitivity multipliedBy(double factor); UnitParameterSensitivity mapSensitivity(DoubleUnaryOperator operator); UnitParameterSensitivity withSensitivity(DoubleArray sensitivity); UnitParameterSensitivity plus(DoubleArray otherSensitivty); UnitParameterSensitivity plus(UnitParameterSensitivity otherSensitivty); ImmutableList<UnitParameterSensitivity> split(); double total(); static UnitParameterSensitivity.Meta meta(); @Override UnitParameterSensitivity.Meta metaBean(); MarketDataName<?> getMarketDataName(); ImmutableList<ParameterMetadata> getParameterMetadata(); DoubleArray getSensitivity(); Optional<List<ParameterSize>> getParameterSplit(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_of_metadata_badMetadata() { assertThatIllegalArgumentException() .isThrownBy(() -> UnitParameterSensitivity.of(NAME1, METADATA_BAD, VECTOR1)); }
@Test public void test_of_metadataParamSplit_badSplit() { assertThatIllegalArgumentException() .isThrownBy(() -> UnitParameterSensitivity.of(NAME_COMBINED, METADATA1, VECTOR1, PARAM_SPLIT)); }
@Test public void coverage() { UnitParameterSensitivity test = UnitParameterSensitivity.of(NAME1, METADATA1, VECTOR1); coverImmutableBean(test); UnitParameterSensitivity test2 = UnitParameterSensitivity.of(NAME2, METADATA2, VECTOR2); coverBeanEquals(test, test2); }