PdxInstanceImpl extends PdxReaderImpl implements InternalPdxInstance { @Override public List<String> getFieldNames() { return getPdxType().getFieldNames(); } PdxInstanceImpl(PdxType pdxType, DataInput in, int len); protected  PdxInstanceImpl(PdxReaderImpl original); static boolean getPdxReadSerialized(); static void setPdxReadSerialized(boolean readSerialized); @Override Object getField(String fieldName); @Override void sendTo(DataOutput out); @Override byte[] toBytes(); @Override Object getCachedObject(); @Override Object getObject(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); @Override List<String> getFieldNames(); @Override WritablePdxInstance createWriter(); @Override synchronized String readString(String fieldName); @Override synchronized Object readObject(String fieldName); @Override synchronized Object readObject(PdxField ft); @Override synchronized char[] readCharArray(String fieldName); @Override synchronized boolean[] readBooleanArray(String fieldName); @Override synchronized byte[] readByteArray(String fieldName); @Override synchronized short[] readShortArray(String fieldName); @Override synchronized int[] readIntArray(String fieldName); @Override synchronized long[] readLongArray(String fieldName); @Override synchronized float[] readFloatArray(String fieldName); @Override synchronized double[] readDoubleArray(String fieldName); @Override synchronized String[] readStringArray(String fieldName); @Override synchronized Object[] readObjectArray(String fieldName); @Override synchronized Object[] readObjectArray(PdxField ft); @Override synchronized byte[][] readArrayOfByteArrays(String fieldName); @Override synchronized Object readField(String fieldName); @Override String getClassName(); @Override boolean isEnum(); @Override Object getRawField(String fieldName); @Override boolean isDeserializable();  }
@Test public void testGetFieldNames() { assertEquals(Arrays.asList( nonIdentityField.getFieldName(), booleanField.getFieldName(), doubleField.getFieldName(), intField.getFieldName(), longField.getFieldName(), objectField.getFieldName(), stringField.getFieldName(), byteArrayField.getFieldName(), objectArrayField.getFieldName(), integerArrayField.getFieldName(), shortArrayField.getFieldName(), intArrayField.getFieldName(), longArrayField.getFieldName(), charArrayField.getFieldName(), floatArrayField.getFieldName(), doubleArrayField.getFieldName(), booleanArrayField.getFieldName()), instance.getFieldNames()); }