### Question:
RowResource extends ResourceBase { @PUT @Consumes({MIMETYPE_XML, MIMETYPE_JSON, MIMETYPE_PROTOBUF, MIMETYPE_PROTOBUF_IETF}) public Response put(final CellSetModel model, final @Context UriInfo uriInfo) { if (LOG.isDebugEnabled()) { LOG.debug("PUT " + uriInfo.getAbsolutePath() + " " + uriInfo.getQueryParameters()); } return update(model, true); } RowResource(TableResource tableResource, String rowspec,
      String versions, String check); @GET @Produces({MIMETYPE_XML, MIMETYPE_JSON, MIMETYPE_PROTOBUF, MIMETYPE_PROTOBUF_IETF}) Response get(final @Context UriInfo uriInfo); @GET @Produces(MIMETYPE_BINARY) Response getBinary(final @Context UriInfo uriInfo); @PUT @Consumes({MIMETYPE_XML, MIMETYPE_JSON, MIMETYPE_PROTOBUF, MIMETYPE_PROTOBUF_IETF}) Response put(final CellSetModel model,
      final @Context UriInfo uriInfo); @PUT @Consumes(MIMETYPE_BINARY) Response putBinary(final byte[] message,
      final @Context UriInfo uriInfo, final @Context HttpHeaders headers); @POST @Consumes({MIMETYPE_XML, MIMETYPE_JSON, MIMETYPE_PROTOBUF, MIMETYPE_PROTOBUF_IETF}) Response post(final CellSetModel model,
      final @Context UriInfo uriInfo); @POST @Consumes(MIMETYPE_BINARY) Response postBinary(final byte[] message,
      final @Context UriInfo uriInfo, final @Context HttpHeaders headers); @DELETE Response delete(final @Context UriInfo uriInfo);  }### Answer:
@Test public void testInvalidCheckParam() throws IOException, JAXBException { CellSetModel cellSetModel = new CellSetModel(); RowModel rowModel = new RowModel(ROW_1); rowModel.addCell(new CellModel(Bytes.toBytes(COLUMN_1), Bytes.toBytes(VALUE_1))); cellSetModel.addRow(rowModel); StringWriter writer = new StringWriter(); marshaller.marshal(cellSetModel, writer); final String path = "/" + TABLE + "/" + ROW_1 + "/" + COLUMN_1 + "?check=blah"; Response response = client.put(path, Constants.MIMETYPE_XML, Bytes.toBytes(writer.toString())); assertEquals(response.getCode(), 400); }