### Question:
Floats { public static Mapper<String, Float> fromStringToFloat() { return new Mapper<String, Float>() { @Override public Float map(String input) { return Float.valueOf(input); } }; }  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 returnsMapperFromStringToFloat() { assertThat(fromStringToFloat().map("12345678.910"), is(12345678.910F)); }
@Test(expected = NullPointerException.class) public void throwsNullPointerExceptionWhenMapperFromStringToFloatPassedNull() { fromStringToFloat().map(null); }