void () { final ConfigKey configKey = ConfigKey.ACCESSORS_CHAIN; when(fileBasedIndex.getValues(eq(LombokConfigIndex.NAME), eq(configKey), isA(GlobalSearchScope.class))) .thenReturn(makeValue(EXPECTED_VALUE)); final String property = discovery.getStringLombokConfigProperty(configKey, psiClass); assertNotNull(property); assertEquals(EXPECTED_VALUE, property); }