### Question:
Tuple implements Comparable<Object>, Iterable<Object>, Serializable { public Tuple get( int[] pos ) { if( pos == null || pos.length == 0 ) return new Tuple( this ); Tuple results = new Tuple( new ArrayList<>( pos.length ) ); for( int i : pos ) results.elements.add( elements.get( i ) ); return results; } protected  Tuple( List<Object> elements );  Tuple(); @ConstructorProperties({"tuple"})  Tuple( Tuple tuple ); @ConstructorProperties({"values"})  Tuple( Object... values ); static Tuple size( int size ); static Tuple size( int size, Comparable value ); static List<Object> elements( Tuple tuple ); boolean isUnmodifiable(); Object getObject( int pos ); char getChar( int pos ); String getString( int pos ); float getFloat( int pos ); double getDouble( int pos ); int getInteger( int pos ); long getLong( int pos ); short getShort( int pos ); boolean getBoolean( int pos ); Tuple get( int[] pos ); Tuple get( Fields declarator, Fields selector ); int[] getPos( Fields declarator, Fields selector ); Tuple leave( int[] pos ); void clear(); void add( Comparable value ); void add( Object value ); void addBoolean( boolean value ); void addShort( short value ); void addInteger( int value ); void addLong( long value ); void addFloat( float value ); void addDouble( double value ); void addString( String value ); void addAll( Object... values ); void addAll( Tuple tuple ); void setAll( Tuple tuple ); void setAll( Tuple... tuples ); void set( int index, Object value ); void setBoolean( int index, boolean value ); void setShort( int index, short value ); void setInteger( int index, int value ); void setLong( int index, long value ); void setFloat( int index, float value ); void setDouble( int index, double value ); void setString( int index, String value ); void put( Fields declarator, Fields fields, Tuple tuple ); Tuple remove( int[] pos ); Tuple remove( Fields declarator, Fields selector ); void set( Fields declarator, Fields selector, Tuple tuple ); Iterator<Object> iterator(); boolean isEmpty(); int size(); Class[] getTypes(); Tuple append( Tuple... tuples ); int compareTo( Tuple other ); int compareTo( Comparator[] comparators, Tuple other ); int compareTo( Object other ); @SuppressWarnings({"ForLoopReplaceableByForEach"}) @Override boolean equals( Object object ); @Override int hashCode(); @Override String toString(); String toString( String delim ); String toString( String delim, boolean printNull ); String format( String format ); String print(); StringBuffer printTo( StringBuffer buffer ); static final Tuple NULL; }### Answer:
@Test public void testGet() { Tuple aTuple = tuple.get( new int[]{0} ); assertEquals( "not equal: aTuple.size()", 1, aTuple.size() ); assertEquals( "not equal: aTuple.get( 0 )", "a", aTuple.getObject( 0 ) ); assertEquals( "not equal: tuple.size()", 5, tuple.size() ); assertEquals( "not equal: tuple.get( 0 )", "a", tuple.getObject( 0 ) ); assertEquals( "not equal: tuple.get( 1 )", "b", tuple.getObject( 1 ) ); }