### Question:
StringTypeNode extends VariantTypeNode { @Override public String getValue() { return value; } StringTypeNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent, int length); @Override String getValue();  }### Answer:
@Test public void testStringLengthArg() throws IOException { String value = "string test"; assertEquals(value, new StringTypeNode(testBinaryReaderBuilder.putString(value).build(), chunkHeader, parent, value.length() + 1).getValue()); }
@Test public void testStringNoLengthArg() throws IOException { String value = "string test"; BinaryReader binaryReader = testBinaryReaderBuilder.putWord(value.length() + 1).putString(value).build(); assertEquals(value, new StringTypeNode(binaryReader, chunkHeader, parent, -1).getValue()); }