### Question:
ProcessVariableSerializer { public static Map<String, VariableInfo> deserialize(String serializedVariables) { return Stream.of(serializedVariables.split(",")) .filter(s -> !s.isEmpty()) .map(ProcessVariableSerializer::deserializeVariable) .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); }  static Map<String, VariableInfo> deserialize(String serializedVariables);  }### Answer:
@Test public void deserialize() { final Map<String, ProcessVariableSerializer.VariableInfo> deserialized = ProcessVariableSerializer.deserialize(VARIABLE); assertEquals(deserialized.size(), 2); assertEquals(deserialized.get("PV1").getType(), "java.lang.String"); assertEquals(deserialized.get("PV1").getTags(), "[internal;output]"); assertEquals(deserialized.get("PV2").getType(), "java.lang.Boolean"); assertEquals(deserialized.get("PV2").getTags(), "[internal;readonly;customTag]"); }