@Test public void testGetContents() { uploadedFile.setContents("image".getBytes()); assertTrue(Arrays.equals("image".getBytes(), uploadedFile.getContents())); }
public byte[] getContents() { return contents; }
UploadFile implements Serializable { public byte[] getContents() { return contents; } }
UploadFile implements Serializable { public byte[] getContents() { return contents; } UploadFile(String name, String contentType, long size,
            byte[] contents); }
UploadFile implements Serializable { public byte[] getContents() { return contents; } UploadFile(String name, String contentType, long size,
            byte[] contents); String getId(); String getName(); void setName(String name); String getContentType(); void setContentType(String contentType); long getSize(); void setSize(long size); byte[] getContents(); void setContents(byte[] contents); long getSizeKB(); String toString(); }
UploadFile implements Serializable { public byte[] getContents() { return contents; } UploadFile(String name, String contentType, long size,
            byte[] contents); String getId(); String getName(); void setName(String name); String getContentType(); void setContentType(String contentType); long getSize(); void setSize(long size); byte[] getContents(); void setContents(byte[] contents); long getSizeKB(); String toString();  }