DifferentialRevision { String optionalWrapWithBlocking(String value, boolean blocking) { if (blocking) { value = "blocking(" + value + ")"; } return value; } DifferentialRevision(PhabricatorHttpClient phabricatorHttpClient); @SuppressWarnings("Duplicates") void addComment(String objectIdentifier, String value); void removeReviewer(String objectIdentifier, String value, boolean blocking); void addReviewer(String objectIdentifier, String value, boolean blocking);  }
@Test public void optionalWrapWithBlocking() { DifferentialRevision differentialRevision = new DifferentialRevision(null); String optionalWrapWithBlocking = differentialRevision.optionalWrapWithBlocking("testvalue", true); assertEquals("blocking(testvalue)", optionalWrapWithBlocking); }