@Test
public void testResourceDimensionDivide() throws Exception {

    ResourceDimension large = ResourceDimensionSample.SmallWithGpuAndOpportunisticX2.build();
    ResourceDimension small = ResourceDimensionSample.SmallWithGpuAndOpportunistic.build();
    Pair<Long, ResourceDimension> result = ResourceDimensions.divide(large, small);
    assertThat(result.getLeft()).isEqualTo(2);
    assertThat(result.getRight()).isEqualTo(ResourceDimension.empty());
}