### Question:
Errors implements RestResponse { public Errors() { errors = new ArrayList<>(0); } Errors(); List<Error> getErrors(); void setErrors(List<Error> errors); @Override String toString();  }### Answer:
@Test @DisplayName("Set and get errors") void errorsTest() { Error error = mock(Error.class); unit.setErrors(Collections.singletonList(error)); assertThat(unit.getErrors()).containsOnly(error); }