### Question:
ReplacingServiceImpl implements ReplacingService { @Nonnull @Override public Pair<String, String> retrievePseudoTextReplacingPattern(@Nonnull String clause) { String[] pattern = retrievePattern(clause); return isPatternCorrect(pattern) ? Pair.of(extractPseudoText(pattern[0]).replace(" ", " +"), extractPseudoText(pattern[1])) : Pair.of("", ""); }  @Nonnull String applyReplacing(
      @Nonnull String text, @Nonnull List<Pair<String, String>> replacePatterns); @Nonnull @Override Pair<String, String> retrievePseudoTextReplacingPattern(@Nonnull String clause); @Nonnull @Override Pair<String, String> retrieveTokenReplacingPattern(@Nonnull String clause);  }### Answer:
@Test void retrievePseudoTextReplacingPattern() { ReplacingService replacingService = new ReplacingServiceImpl(); assertEquals( Pair.of("01", "05"), replacingService.retrievePseudoTextReplacingPattern("== 01 == BY == 05 ==")); assertEquals(Pair.of("", ""), replacingService.retrievePseudoTextReplacingPattern("")); assertEquals( Pair.of("a +b +\nc", ""), replacingService.retrievePseudoTextReplacingPattern("==a b \nc== bY ====")); assertEquals( Pair.of("1", ""), replacingService.retrievePseudoTextReplacingPattern("==1== by ==\n \r\n ==")); }