@Test
public void testEmptyInstanceTypeIsIgnored() {

    Pair<V1Affinity, Map<String, String>> affinityWithAnnotations = factory.buildV1Affinity(
            newJobWithHardConstraint(JobConstraints.MACHINE_TYPE, ""), JobGenerator.oneBatchTask()
    );
    assertThat(affinityWithAnnotations.getLeft().getNodeAffinity()).isNull();
}