RemoveUnusedImportsStep { public static FormatterStep create(Provisioner provisioner) { Objects.requireNonNull(provisioner, "provisioner"); return FormatterStep.createLazy(NAME, () -> new GoogleJavaFormatStep.State(NAME, GoogleJavaFormatStep.defaultVersion(), provisioner), GoogleJavaFormatStep.State::createRemoveUnusedImportsOnly); } private  RemoveUnusedImportsStep(); static FormatterStep create(Provisioner provisioner);  }
@Test public void behavior() throws Exception { FormatterStep step = RemoveUnusedImportsStep.create(TestProvisioner.mavenCentral()); StepHarness.forStep(step) .testResource("java/removeunusedimports/JavaCodeUnformatted.test", "java/removeunusedimports/JavaCodeFormatted.test") .testResource("java/removeunusedimports/JavaCodeWithLicenseUnformatted.test", "java/removeunusedimports/JavaCodeWithLicenseFormatted.test") .testResource("java/removeunusedimports/JavaCodeWithLicensePackageUnformatted.test", "java/removeunusedimports/JavaCodeWithLicensePackageFormatted.test") .testResource("java/removeunusedimports/JavaCodeWithPackageUnformatted.test", "java/removeunusedimports/JavaCodeWithPackageFormatted.test"); }
@Test public void equality() throws Exception { new SerializableEqualityTester() { @Override protected void setupTest(API api) { api.areDifferentThan(); } @Override protected FormatterStep create() { return RemoveUnusedImportsStep.create(TestProvisioner.mavenCentral()); } }.testEquals(); }