@Test
public void itThrowsWhenExpectErrIsCalledOnOk() throws Exception {

  String message = "this should throw";
  assertThatExceptionOfType(IllegalStateException.class)
      .isThrownBy(() -> OK_RESULT.expectErr(message))
      .withMessage(message);
}