	@Test
	public void readString() throws IOException {

		final String first = "Hi there";
		final String second = "Have a nice day!";
		byte[] firstBytes = first.getBytes();
		byte[] secondBytes = second.getBytes();
		byte[] newBytes = new byte[firstBytes.length + secondBytes.length + 1];
		System.arraycopy(firstBytes, 0, newBytes, 0, firstBytes.length);
		System.arraycopy(secondBytes, 0, newBytes, firstBytes.length + 1, secondBytes.length);
		InputStream in = new ByteArrayInputStream(newBytes);

		Assert.assertEquals(IoUtils.readString(in, "UTF-8"), first);
		Assert.assertEquals(IoUtils.readString(in, "UTF-8"), second);
	}