@Test
public void cancelled() {

  Truth.assertThat(createException(Code.CANCELLED)).isInstanceOf(CancelledException.class);
  Truth.assertThat(createExceptionWithMessage(Code.CANCELLED))
      .isInstanceOf(CancelledException.class);
}