Responses { @Deprecated public static boolean isOk(Response response) { return response.isOk(); } private  Responses(); static Response ok(); static Status statusOk(); @Deprecated static boolean isOk(Response response);  }
@Test @DisplayName("recognize not OK response") void recognizeNotOkResponse() { Status status = Status.newBuilder() .setError(Error.getDefaultInstance()) .build(); Response error = Response.newBuilder() .setStatus(status) .build(); assertFalse(error.isOk()); assertTrue(error.isError()); }