### Question:
Literal extends ExpressionPart implements
        Update.SetLiteral,
        Update.AddLiteral,
        Update.AppendInsertLiteral { public static Literal value(Object x) { return new Literal(x); } Literal(int i);  Literal(long l);  Literal(String s);  Literal(double d);  Literal(Date d);  Literal(Object x); static JsonNode valueToJson(Object x); static Literal pojo(Object x); static Literal value(Object x); static Literal value(int i); static Literal value(long l); static Literal value(double d); static Literal value(boolean b); @Deprecated static Literal[] values(int... v); @Deprecated static Literal[] values(long... v); @Deprecated static Literal[] numbers(Number... v); @Deprecated static Literal[] values(String... v); static EmptyArray emptyArray(); static EmptyObject emptyObject(); static JsonNode toJson(Literal[] arr);  }### Answer:
@Test public void testBooleanPrimitiveArray() { boolean[] values = new boolean[]{true, false}; Literal l = Literal.value(values); Assert.assertEquals("[true,false]", l.toString()); }
@Test public void testBooleanArray() { Boolean[] values = new Boolean[]{true, false}; Literal l = Literal.value(values); Assert.assertEquals("[true,false]", l.toString()); }
@Test public void testDateArray() { Date d1 = new Date(); Date[] values = new Date[]{d1}; Literal l = Literal.value(values); Assert.assertEquals("[\"" + ClientConstants.getDateFormat().format(d1) + "\"]", l.toString()); }
@Test public void testLiteralArray() { Literal[] values = new Literal[]{Literal.value("hello"), Literal.value("world")}; Literal l = Literal.value(values); Assert.assertEquals("[\"hello\",\"world\"]", l.toString()); }