### Question:
BusinessData implements Serializable { public Map<String,Object> toVariables() { final HashMap<String,Object> variables = new HashMap<>(); for (Map.Entry<String,Integer> entry : getData().entrySet()) { variables.put(entry.getKey(), entry.getValue()); } return variables; }  Map<String,Object> toVariables();  }### Answer:
@Test public void transform() throws Exception { final Map<String, Integer> businessData = new HashMap<>(); businessData.put("foo", 1); businessData.put("bar", null); final BusinessData data = new BusinessData(businessData); Map<String, Object> variables = data.toVariables(); assertThat(variables.get("foo")).isEqualTo(1); assertThat(variables.get("bar")).isNull(); }