public void init() throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException { final ConfigurationInterfacePathResolver resolverHelper = new ConfigurationInterfacePathResolver(); resolverHelper.init(); when(pathResolver.getDefaultCiPath()).thenReturn(Paths.get(TEST_FOLDER)); when(pathResolver.getAgentMappingFilePath()).thenReturn(Paths.get(TEST_FOLDER).resolve(EXT_RESOURCES_PATH.relativize(resolverHelper.getAgentMappingFilePath())));