HandledState implements JsonStream.Streamable { static HandledState newInstance(@SeverityReason String severityReasonType) { return newInstance(severityReasonType, null, null); } HandledState(String severityReasonType, Severity currentSeverity, boolean unhandled,
                         @Nullable String attributeValue); boolean isUnhandled(); @Override void toStream(@NonNull JsonStream writer);  }
@Test(expected = IllegalArgumentException.class) public void testInvalidStrictmodeVal() { HandledState.newInstance(HandledState.REASON_STRICT_MODE); }
@Test(expected = IllegalArgumentException.class) public void testInvalidHandledVal() { HandledState.newInstance(HandledState.REASON_HANDLED_EXCEPTION, Severity.ERROR, "Whoops"); }