diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/AbstractExecutionContextSerializerTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/AbstractExecutionContextSerializerTests.java index 50a8d8e2e0..871a7e20c6 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/AbstractExecutionContextSerializerTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/AbstractExecutionContextSerializerTests.java @@ -166,9 +166,7 @@ protected Map serializationRoundTrip(Map m1) thr ByteArrayOutputStream out = new ByteArrayOutputStream(); getSerializer().serialize(m1, out); - String s = new String(out.toByteArray(), "ISO-8859-1"); - - InputStream in = new ByteArrayInputStream(s.getBytes("ISO-8859-1")); + InputStream in = new ByteArrayInputStream(out.toByteArray()); Map m2 = getSerializer().deserialize(in); return m2; }