class AdapterMock implements Adapter {
    private String filePath;
    private String errorValue;

    public AdapterMock(String filePath) {
        this.filePath = filePath;
    }

    public void setMockErr(String errorToSet) {
        this.errorValue = errorToSet;
    }

    public Exception getMockErr() {
        if (errorValue != null && !errorValue.isEmpty()) {
            return new Exception(errorValue);
        }
        return null;
    }

    @Override
    public void loadPolicy(Model model) {<FILL_FUNCTION_BODY>}

    @Override
    public void savePolicy(Model model) {
    }

    @Override
    public void addPolicy(String sec, String ptype, List<String> rule) {

    }

    @Override
    public void removePolicy(String sec, String ptype, List<String> rule) {
    }

    @Override
    public void removeFilteredPolicy(String sec, String ptype, int fieldIndex, String... fieldValues) {
    }

    private void loadPolicyFile(Model model, Helper.loadPolicyLineHandler<String, Model> handler) throws IOException {
        try (BufferedReader br = new BufferedReader(new FileReader(filePath))) {
            String line;
            while ((line = br.readLine()) != null) {
                line = line.trim();
                handler.accept(line, model);
            }
        }
    }
}

        try {
            loadPolicyFile(model, Helper::loadPolicyLine);
        } catch (IOException e) {
            e.printStackTrace();
        }
    
<no_super_class>