@Test
public void testSplitByOtherProperty() {

  final DAGBuilder<IRVertex, IREdge> dagBuilder = new DAGBuilder<>();
  final IRVertex v0 = newVertex(1, 0,
    Arrays.asList(ResourcePriorityProperty.of(ResourcePriorityProperty.RESERVED)));
  final IRVertex v1 = newVertex(1, 0, Collections.emptyList());
  dagBuilder.addVertex(v0);
  dagBuilder.addVertex(v1);
  dagBuilder.connectVertices(new IREdge(CommunicationPatternProperty.Value.ONE_TO_ONE, v0, v1));
  final Map<IRVertex, Integer> partitioning = stagePartitioner.apply(new IRDAG(dagBuilder.buildWithoutSourceSinkCheck()));
  assertNotEquals(partitioning.get(v0), partitioning.get(v1));
}