@Test
public void testHasRunModes() {

    Assert.assertTrue(toTest.hasRunModes(Collections.<String>emptySet()));
    Assert.assertTrue(toTest.hasRunModes(ImmutableSet.of("runmode1", "runmode2")));
    Assert.assertTrue(toTest.hasRunModes(ImmutableSet.of("runmode1")));
    Assert.assertTrue(toTest.hasRunModes(ImmutableSet.of("runmode1", "runmode3")));
    Assert.assertTrue(toTest.hasRunModes(ImmutableSet.of("runmode1.runmode2")));
    Assert.assertFalse(toTest.hasRunModes(ImmutableSet.of("runmode3")));
    Assert.assertFalse(toTest.hasRunModes(ImmutableSet.of("runmode1.runmode3")));
}