    @Test
    void testInvalidValidOkuriganaWithOsae4() throws Exception {

        String sampleText = "そこを押える時、";
        Configuration config = Configuration.builder("ja")
                .addValidatorConfig(new ValidatorConfiguration("Okurigana"))
                .build();

        DocumentParser parser = DocumentParser.MARKDOWN;
        List<Document> documents = new ArrayList<>();
        Document document  = parser.parse(sampleText,
                new SentenceExtractor(config.getSymbolTable()),
                config.getTokenizer());
        documents.add(document);

        RedPen redPen = new RedPen(config);
        Map<Document, List<ValidationError>> errors = redPen.validate(documents);

        assertEquals(1, errors.get(documents.get(0)).size());
        assertEquals(1, errors.get(documents.get(0)).get(0).getLineNumber());
        assertEquals("Okurigana", errors.get(documents.get(0)).get(0).getValidatorName());

    }