@Test
public void shouldCreateBooleanFromInputStreamContainingUtf8EncodingOfTrueOrFalseStringRegardlessOfCase() throws Exception {

    assertThat(factory.create(new ByteArrayInputStream("true".getBytes("UTF-8"))), is(true));
    assertThat(factory.create(new ByteArrayInputStream("false".getBytes("UTF-8"))), is(false));
    assertThat(factory.create(new ByteArrayInputStream("TRUE".getBytes("UTF-8"))), is(true));
    assertThat(factory.create(new ByteArrayInputStream("FALSE".getBytes("UTF-8"))), is(false));
    assertThat(factory.create(new ByteArrayInputStream("something else".getBytes("UTF-8"))), is(false));
}