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 50a8d8e2e..871a7e20c 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 @@ public abstract class AbstractExecutionContextSerializerTests { 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; }