@Test
public void shouldCreateBooleanFromByteArrayContainingUtf8EncodingOfTrueOrFalseStringRegardlessOfCase() throws Exception {

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