### Question:
ObjectSizeCalculator { public static long sizeOf(Object o) throws IllegalAccessException { return sizeOf(o, CURRENT_JVM_64_BIT); }  static long sizeOf(Object o); static long sizeOf(Object o, boolean jvm64bit);  }### Answer:
@Test public void testSizeOf() throws IllegalAccessException { long size64bit = sizeOf(object, true); assertThat("SizeOf for " + tcName + " and 64-bit JVM does not match", size64bit, is(result64bit)); long size32bit = sizeOf(object, false); assertThat("SizeOf for " + tcName + " and 32-bit JVM does not match", size32bit, is(result32bit)); }