Primer { public static boolean isEnabled() { return Boolean.getBoolean(ENABLE_PRIMER_SYSTEM_PROPERTY); }  static Optional<Primer> getInstance(); static boolean isEnabled(); static void primeBasicsIfEnabled(); abstract void primeGrpcAsync(); abstract void primeProtobufAsync(); abstract void primeAllVersionsAsync(); abstract void primeCredentialsAsync(Credentials credentials);  }
@Test public void systemProperty_true_enablesPrimer() { System.setProperty(Primer.ENABLE_PRIMER_SYSTEM_PROPERTY, "true"); assertTrue("Failed to enable primer", Primer.isEnabled()); }
@Test public void systemProperty_null_disablesPrimer() { System.clearProperty(Primer.ENABLE_PRIMER_SYSTEM_PROPERTY); assertFalse("Failed to enable primer", Primer.isEnabled()); }
@Test public void systemProperty_false_disablesPrimer() { System.setProperty(Primer.ENABLE_PRIMER_SYSTEM_PROPERTY, "false"); assertFalse("Failed to enable primer", Primer.isEnabled()); }
@Test public void systemProperty_randomText_disablesPrimer() { System.setProperty(Primer.ENABLE_PRIMER_SYSTEM_PROPERTY, "asdf"); assertFalse("Failed to enable primer", Primer.isEnabled()); }