### Question:
Json { public static byte[] asBytes(JsonNode data) { try { return MAPPER.writeValueAsBytes(data); } catch (JsonProcessingException e) { throw new UncheckedIOException(e); } }  static String asString(JsonNode data); static String asString(Object data); static byte[] asBytes(JsonNode data); static byte[] asBytes(Object data); static ObjectNode asObjectNode(Map<String, ?> map); static Map<String, Object> asMap(ObjectNode objectNode); static T convertValue(TreeNode root, Class<T> klass); @VisibleForTesting static T convertValue(TreeNode root, TypeReference<T> typeReference); static Schema readBigQuerySchema(byte[] data); static T readValue(byte[] data, Class<T> klass); static ObjectNode readObjectNode(byte[] data); static ObjectNode readObjectNode(String data); static ArrayNode readArrayNode(byte[] data); static Map<String, Object> readMap(String data); static ObjectNode createObjectNode(); static ArrayNode createArrayNode(); static boolean isNullOrEmpty(ObjectNode node); static boolean isNullOrEmpty(JsonNode node);  }### Answer:
@Test public void asBytesCanThrowChecked() { assertThrows(JsonProcessingException.class, () -> Json.asBytes((Object) badNode)); }
@Test public void asBytesCanThrowUnchecked() { UncheckedIOException thrown = assertThrows(UncheckedIOException.class, () -> Json.asBytes(badNode)); assertTrue(thrown.getCause() instanceof JsonProcessingException); }