This loop can be replaced with `assertTrue(Arrays.equals(data, newData));`