@Test
public void isMainComponent() {

    assertTrue(ValidationUtils.isMainComponent(looseConfig, true));
    assertFalse(ValidationUtils.isMainComponent(looseConfig, false));
    looseConfig.setCheckMainComponentOnly(false);
    assertTrue(ValidationUtils.isMainComponent(looseConfig, true));
    assertTrue(ValidationUtils.isMainComponent(looseConfig, false));
}