### Question:
JsonSerialization { public T fromBytes(byte[] bytes) throws IOException { return fromJson(new String(bytes, 0, bytes.length, UTF_8)); } JsonSerialization(Class<T> classType,
      boolean failOnUnknownProperties, boolean pretty); static ObjectWriter writer(); static ObjectReader mapReader(); String getName(); ObjectMapper getMapper(); @SuppressWarnings("unchecked") synchronized T fromJson(String json); synchronized T fromJsonStream(InputStream stream); @SuppressWarnings("unchecked") synchronized T load(File jsonFile); void save(File file, T instance); @SuppressWarnings({"IOResourceOpenedButNotSafelyClosed"}) synchronized T fromResource(String resource); T fromInstance(T instance); T load(FileSystem fs, Path path); void save(FileSystem fs, Path path, T instance,
      boolean overwrite); byte[] toBytes(T instance); T fromBytes(byte[] bytes); synchronized String toJson(T instance); String toString(T instance);  }### Answer:
@Test public void testBadBytesRoundTrip() throws Throwable { LambdaTestUtils.intercept(JsonParseException.class, "token", () -> serDeser.fromBytes(new byte[]{'a'})); }