### Question:
Floats { public static Mapper<Long, Float> fromLongToFloat() { return new Mapper<Long, Float>() { @Override public Float map(Long 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 returnsMapperFromLongToFloat() { assertThat(fromLongToFloat().map(1234L), is(1234F)); }
@Test(expected = NullPointerException.class) public void throwsNullPointerExceptionWhenMapperFromLongToFloatPassedNull() { fromLongToFloat().map(null); }