ThirdPartyService { String replaceSpacePlaceholder(String input) { return Strings.nullToEmpty(input).replaceAll(PLURAL_SEPARATOR_SPACE, " "); }  PollableFuture<Void> asyncSyncMojitoWithThirdPartyTMS(ThirdPartySync thirdPartySync);  }
@Test public void testReplaceSpacePlaceholder() { assertThat(thirdPartyService.replaceSpacePlaceholder(null)).isEqualTo(""); assertThat(thirdPartyService.replaceSpacePlaceholder("")).isEqualTo(""); assertThat(thirdPartyService.replaceSpacePlaceholder("_")).isEqualTo("_"); assertThat(thirdPartyService.replaceSpacePlaceholder("%s_")).isEqualTo(" _"); assertThat(thirdPartyService.replaceSpacePlaceholder("_%s%")).isEqualTo("_ %"); assertThat(thirdPartyService.replaceSpacePlaceholder("_%ss")).isEqualTo("_ s"); assertThat(thirdPartyService.replaceSpacePlaceholder("%s-s")).isEqualTo(" -s"); assertThat(thirdPartyService.replaceSpacePlaceholder("%%ss")).isEqualTo("% s"); assertThat(thirdPartyService.replaceSpacePlaceholder("%s%s")).isEqualTo(" "); }