public void shouldUseSizeWhenComparing() {
byte[] shorterContent = new byte[validByteArrayContent.length - 2];
for (int i = 0; i != shorterContent.length; ++i) {
shorterContent[i] = validByteArrayContent[i];
}
BinaryValue another = new InMemoryBinaryValue(store, shorterContent);
assertThat(binary.equals(another), is(false));
assertThat(binary.compareTo(another) > 0, is(true));
assertThat(another.compareTo(binary) < 0, is(true));
assertThat(another, hasContent(shorterContent));
}