@Test
public void testValidateModifyScoreAction() throws Exception {

    final Path path = mock(Path.class);
    final FreeFormLine modifyAction = new FreeFormLine();
    modifyAction.setText(MODIFY_SCORE_ACTION);
    final RuleModel model = new RuleModel();
    model.addRhsItem(modifyAction);
    service.validate(path, model);
    final ArgumentCaptor<String> capturedFileContent = ArgumentCaptor.forClass(String.class);
    verify(genericValidator).validate(eq(path), capturedFileContent.capture());
    Assertions.assertThat(capturedFileContent.getValue()).contains(MODIFY_SCORE_ACTION);
}