FreshMarkStep { public static FormatterStep create(Supplier<Map<String, ?>> properties, Provisioner provisioner) { return create(defaultVersion(), properties, provisioner); } private  FreshMarkStep(); static FormatterStep create(Supplier<Map<String, ?>> properties, Provisioner provisioner); static FormatterStep create(String version, Supplier<Map<String, ?>> properties, Provisioner provisioner); static String defaultVersion();  }
@Test public void behavior() throws Exception { HashMap<String, String> map = new HashMap<>(); map.put("lib", "MyLib"); map.put("author", "Me"); StepHarness.forStep(FreshMarkStep.create(() -> map, TestProvisioner.mavenCentral())) .testResource("freshmark/FreshMarkUnformatted.test", "freshmark/FreshMarkFormatted.test"); }
@Test public void equality() throws Exception { new SerializableEqualityTester() { String version = "1.3.1"; Map<String, Object> props = new HashMap<>(); @Override protected void setupTest(API api) { api.areDifferentThan(); version = "1.3.0"; api.areDifferentThan(); props.put("1", "2"); api.areDifferentThan(); } @Override protected FormatterStep create() { String finalVersion = this.version; Map<String, ?> finalProps = new HashMap<>(props); return FreshMarkStep.create(finalVersion, () -> finalProps, TestProvisioner.mavenCentral()); } }.testEquals(); }