@Test
public void testJsonTaskModel() throws Exception {
ObjectMapper mapper = SamzaObjectMapper.getObjectMapper();
Map<String, String> configMap = new HashMap<String, String>();
configMap.put("a", "b");
Config config = new MapConfig(configMap);
Set<SystemStreamPartition> inputSystemStreamPartitions = new HashSet<SystemStreamPartition>();
inputSystemStreamPartitions.add(new SystemStreamPartition("foo", "bar", new Partition(1)));
TaskName taskName = new TaskName("test");
TaskModel taskModel = new TaskModel(taskName, inputSystemStreamPartitions, new Partition(2));
Map<TaskName, TaskModel> tasks = new HashMap<TaskName, TaskModel>();