### Question:
ChangelogEnvironmentContributor extends SimpleBuildWrapper { @DataBoundSetter public void setEntryFormat(String entryFormat) { this.entryFormat = entryFormat; } @DataBoundConstructor  ChangelogEnvironmentContributor(); @DataBoundSetter void setDateFormat(String dateFormat); @DataBoundSetter void setEntryFormat(String entryFormat); @DataBoundSetter void setLineFormat(String lineFormat); String getEntryFormat(); String getLineFormat(); String getDateFormat(); @Override void setUp(Context context, Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment);  }### Answer:
@Test public void testBuildWithEnvironment() throws Exception { FreeStyleProject p = j.createFreeStyleProject(); FakeChangeLogSCM scm = new FakeChangeLogSCM(); p.setScm(scm); j.buildAndAssertSuccess(p); scm.addChange().withAuthor("danielbeck").withMsg("initial commit"); ChangelogEnvironmentContributor c = new ChangelogEnvironmentContributor(); c.setEntryFormat("%s | %3$s"); p.getBuildWrappersList().add(c); p.getBuildersList().add(new EnvironmentCheckBuilder("danielbeck | initial commit")); j.buildAndAssertSuccess(p); }