public static Parser parser() {
        return ParserImpl.INSTANCE;
    }
@Test
    void testCharsetInputValidation() {
        assertThrows(NullPointerException.class, new Executable() {
            @Override
            public void execute() throws IOException {
                HostsFileEntriesProvider.parser().parse((Charset[]) null);
            }
        });

        assertThrows(NullPointerException.class, new Executable() {
            @Override
            public void execute() throws IOException {
                HostsFileEntriesProvider.parser().parse(new File(""), (Charset[]) null);
            }
        });

        assertThrows(NullPointerException.class, new Executable() {
            @Override
            public void execute() {
                HostsFileEntriesProvider.parser().parseSilently((Charset[]) null);
            }
        });

        assertThrows(NullPointerException.class, new Executable() {
            @Override
            public void execute() {
                HostsFileEntriesProvider.parser().parseSilently(new File(""), (Charset[]) null);
            }
        });
    }