MapValueFunction implements Function, InitializingBean { public void afterPropertiesSet() { Assert.notEmpty(map); }  String execute(List<String> params, TestContext context); void afterPropertiesSet(); Map<String, String> getMap(); void setMap(Map<String, String> map);  }
@Test(expectedExceptions = {IllegalArgumentException.class}) public void testNoMapping() { MapValueFunction testee = new MapValueFunction(); testee.afterPropertiesSet(); }