### Question:
VariableMessageBuilder { public String build(){ return matcher.replace(template, resolver); }  static VariableMessageBuilder create(final String template, VariableResolver resolver); String build();  }### Answer:
@Test public void testBuild() { MsTeamsNotificationPayloadContent content = new MsTeamsNotificationPayloadContent(sBuildServer, sRunningBuild, previousSuccessfulBuild, BuildStateEnum.BEFORE_BUILD_FINISHED); VariableMessageBuilder builder = VariableMessageBuilder.create("This is a test ${buildFullName}", new MsTeamsNotificationBeanUtilsVariableResolver(content)); System.out.println(builder.build()); System.out.println(content.getBuildFullName()); }
@Test public void testBuild() { SlackNotificationPayloadContent content = new SlackNotificationPayloadContent(sBuildServer, sRunningBuild, previousSuccessfulBuild, BuildStateEnum.BEFORE_BUILD_FINISHED); VariableMessageBuilder builder = VariableMessageBuilder.create("This is a test ${buildFullName}", new SlackNotificationBeanUtilsVariableResolver(content)); System.out.println(builder.build()); System.out.println(content.getBuildFullName()); }