### Question:
QueueRule implements Serializable { public ConcurrentProcessRule getConcurrent() { return concurrent; } @JsonCreator  QueueRule(@JsonProperty("concurrent") ConcurrentProcessRule concurrent,
                     @JsonProperty("forkDepth") ForkDepthRule forkDepthRule,
                     @JsonProperty("processTimeout")  ProcessTimeoutRule processTimeoutRule); static QueueRule empty(); ConcurrentProcessRule getConcurrent(); ForkDepthRule getForkDepthRule(); ProcessTimeoutRule getProcessTimeoutRule(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testDeserialize() { Map<String, Object> process = new HashMap<>(); process.put("msg", "Process message"); process.put("RUNNING", 1); process.put("FAILED", 2); Map<String, Object> processPerOrg = new HashMap<>(); processPerOrg.put("msg", "Process per org message"); processPerOrg.put("RUNNING2", 2); Map<String, Object> processPerProject = new HashMap<>(); processPerProject.put("msg", "Process per project message"); processPerProject.put("RUNNING3", 3); Map<String, Object> concurrent = new HashMap<>(); concurrent.put("msg", "Concurrent message"); concurrent.put("maxPerOrg", 4); concurrent.put("maxPerProject", 5); Map<String, Object> rules = new HashMap<>(); rules.put("concurrent", concurrent); rules.put("process", process); rules.put("processPerOrg", processPerOrg); rules.put("processPerProject", processPerProject); QueueRule r = objectMapper.convertValue(rules, QueueRule.class); assertNotNull(r.getConcurrent()); assertEquals(4, (int)r.getConcurrent().getMaxPerOrg()); assertEquals(5, (int)r.getConcurrent().getMaxPerProject()); assertEquals("Concurrent message", r.getConcurrent().getMsg()); }