@Test
public void testSingle() {

  byte[] reference = TestUtil.buildTestData(DATA_LENGTH);
  byte[] data = reference.clone();
  encryptCipher.updateInPlace(data, 0, data.length);
  int unchangedByteCount = data.length - getDifferingByteCount(reference, data);
  assertThat(unchangedByteCount <= getMaxUnchangedBytesAllowedPostEncryption(data.length))
      .isTrue();
  decryptCipher.updateInPlace(data, 0, data.length);
  int differingByteCount = getDifferingByteCount(reference, data);
  assertThat(differingByteCount).isEqualTo(0);
}