### Question:
VTuple implements Tuple, Cloneable { public void put(int fieldId, Datum value) { values[fieldId] = value; } VTuple(int size);  VTuple(Tuple tuple);  VTuple(Datum [] datum); @Override int size(); boolean contains(int fieldId); @Override boolean isNull(int fieldid); @Override void clear(); void put(int fieldId, Datum value); @Override void put(int fieldId, Datum[] values); @Override void put(int fieldId, Tuple tuple); void put(Datum [] values); Datum get(int fieldId); void setOffset(long offset); long getOffset(); @Override boolean getBool(int fieldId); @Override byte getByte(int fieldId); @Override char getChar(int fieldId); @Override byte [] getBytes(int fieldId); @Override short getInt2(int fieldId); @Override int getInt4(int fieldId); @Override long getInt8(int fieldId); @Override float getFloat4(int fieldId); @Override double getFloat8(int fieldId); Inet4Datum getIPv4(int fieldId); byte [] getIPv4Bytes(int fieldId); InetAddress getIPv6(int fieldId); byte[] getIPv6Bytes(int fieldId); @Override String getText(int fieldId); @Override Tuple clone(); String toString(); @Override int hashCode(); @Override Datum[] getValues(); @Override boolean equals(Object obj); @Expose public Datum [] values; }### Answer:
@Test public void testPut() { VTuple t1 = new VTuple(260); t1.put(0, DatumFactory.createText("str")); t1.put(1, DatumFactory.createInt4(2)); t1.put(257, DatumFactory.createFloat4(0.76f)); assertTrue(t1.contains(0)); assertTrue(t1.contains(1)); assertEquals(t1.getText(0),"str"); assertEquals(t1.get(1).asInt4(),2); assertTrue(t1.get(257).asFloat4() == 0.76f); }