### Question:
Floats { public static Mapper<BigDecimal, Float> fromBigDecimalToFloat() { return new Mapper<BigDecimal, Float>() { @Override public Float map(BigDecimal input) { return input.floatValue(); } }; }  static Mapper<String, Float> fromStringToFloat(); static Mapper<Integer, Float> fromIntegerToFloat(); static Mapper<Long, Float> fromLongToFloat(); static Mapper<BigInteger, Float> fromBigIntegerToFloat(); static Mapper<Double, Float> fromDoubleToFloat(); static Mapper<BigDecimal, Float> fromBigDecimalToFloat();  }### Answer:
@Test public void returnsMapperFromBigDecimalToFloat() { assertThat(fromBigDecimalToFloat().map(new BigDecimal("1234.56")), is(1234.56F)); }
@Test(expected = NullPointerException.class) public void throwsNullPointerExceptionWhenMapperFromBigDecimalToFloatPassedNull() { fromBigDecimalToFloat().map(null); }