diff --git a/kop-common-test/src/main/java/de/itvsh/kop/common/test/TestUtils.java b/kop-common-test/src/main/java/de/itvsh/kop/common/test/TestUtils.java
index 200b8b2d915534c28019446fd093c3d94a41518c..47a8ee8e4a9c06d29eee4ddbc531f74466c23312 100644
--- a/kop-common-test/src/main/java/de/itvsh/kop/common/test/TestUtils.java
+++ b/kop-common-test/src/main/java/de/itvsh/kop/common/test/TestUtils.java
@@ -63,10 +63,14 @@ public class TestUtils {
 	public static String addQuote(String str) {
 		return Objects.isNull(str) ? "null" : String.format("\"%s\"", str);
 	}
-	
-	public static byte[] contentStreamToByteArray(InputStream contentStream) throws IOException {
+
+	public static byte[] contentStreamToByteArray(InputStream contentStream) {
 		var outputStream = new ByteArrayOutputStream();
-		IOUtils.copy(contentStream, outputStream);
+		try {
+			IOUtils.copy(contentStream, outputStream);
+		} catch (IOException e) {
+			throw new RuntimeException("Error on reading stream", e);
+		}
 
 		return outputStream.toByteArray();
 	}