storageManager.commit(fileHandles);
assertTrue(storageManager.shardExists(shardUuid));
OperatorContext operatorContext = driverContext.addOperatorContext(0, AlignmentOperator.class.getSimpleName());
Operator operator = new AlignmentOperator(
operatorContext,
ImmutableList.<Type>of(VARCHAR, BIGINT),
ImmutableList.of(
storageManager.getBlocks(shardUuid, columnHandles.get(0)),
storageManager.getBlocks(shardUuid, columnHandles.get(1)))
);
// materialize pages to force comparison only on contents and not page boundaries
MaterializedResult expected = toMaterializedResult(operator.getOperatorContext().getSession(), operator.getTypes(), pages);
OperatorAssertion.assertOperatorEquals(operator, expected);
}