@Test
public void shouldCloseInputStream() throws IOException {

	// Given
	final TestInputStream in = new TestInputStream();
	AbstractPart mock = createPartWithInputStream(name, in);
	OutputStream out = mock(OutputStream.class);
	Part part = new TestPart(name, mock);
	// When
	part.write(out);
	// Then
	assertThat(in.isClosed(), is(Boolean.TRUE));
}