### Question:
LiteralLike { public static LiteralLike from(UastNode node) { if (node.is(UastNode.Kind.LITERAL)) { return new LiteralLike(node); } if (node.children.size() == 1) { Optional<UastNode> childLiteral = node.getChild(UastNode.Kind.LITERAL); if (childLiteral.isPresent()) { return new LiteralLike(childLiteral.get()); } } return null; } private  LiteralLike(UastNode node); static LiteralLike from(UastNode node); UastNode node(); String value();  }### Answer:
@Test void multiple_literal_children() throws Exception { UastNode literal = UastNode.from(new StringReader( "{ \"kinds\": [], " + "\"children\": [" + "{ \"kinds\": [\"LITERAL\"], \"token\": {\"value\": \"foo\" , \"line\": 1, \"column\": 1} }," + "{ \"kinds\": [\"LITERAL\"], \"token\": {\"value\": \"bar\" , \"line\": 1, \"column\": 1 } }" + "]" + "}")); LiteralLike literalLike = LiteralLike.from(literal); assertThat(literalLike).isNull(); }