### Question:
TranslatedH2Exception extends DataAccessException { public String getError() { return error; } TranslatedH2Exception(int errorCode, String error, String message); int getErrorCode(); String getError(); static final int UNKNOWN_ERROR_CODE; }### Answer:
@Test public void testGetError() { assertThat(e.getError(), is(ERROR)); }