### Question:
Integers { public static Mapper<Float, Integer> fromFloatToInteger() { return new Mapper<Float, Integer>() { @Override public Integer map(Float input) { return input.intValue(); } }; }  static Mapper<String, Integer> fromStringToInteger(); static Mapper<Long, Integer> fromLongToInteger(); static Mapper<BigInteger, Integer> fromBigIntegerToInteger(); static Mapper<Float, Integer> fromFloatToInteger(); static Mapper<Double, Integer> fromDoubleToInteger(); static Mapper<BigDecimal, Integer> fromBigDecimalToInteger();  }### Answer:
@Test public void returnsMapperFromFloatToInteger() { assertThat(fromFloatToInteger().map(1234.56F), is(1234)); }
@Test(expected = NullPointerException.class) public void throwsNullPointerExceptionWhenMapperFromFloatToIntegerPassedNull() { fromFloatToInteger().map(null); }