### Question:
StringLiteral extends Literal { public String getValue() { return value; } StringLiteral(NodeLocation location, String value); private  StringLiteral(Optional<NodeLocation> location, String value); String getValue(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testGetValue() { NodeLocation nodeLocation = new NodeLocation(1, 1); StringLiteral stringLiteral1 = new StringLiteral(nodeLocation, "foo"); Assert.assertEquals("foo", stringLiteral1.getValue()); }