ReasonBuffer { public String getReason() { return reasonBuffer.length() == 0 ? null : reasonBuffer.toString(); }  void append(final String reason); void appendOnCondition(final boolean condition, final String reason); String getReason();  }
@Test public void testNoReasonReturnsNull() throws Exception { assertEquals(null, reason.getReason()); }