ContentNode extends MimeTypeNode { public Long getSize() { return size; } ContentNode(final String id, final String parentId, final String name, final File file, final MimeType mimeType); Long getSize(); String getPath(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testGetSize() throws Exception { File file = File.createTempFile(testName.getMethodName(), "avi"); file.deleteOnExit(); ContentNode node = buildContentNode(file); assertEquals(node.getSize().longValue(), file.length()); }