@Test
public void shouldNotTryToReturnCodecInCaseSizeUndefined() {

    Object array = new byte[0];
    Class<?> type = array.getClass();
    when(metadata.getAnnotation(BoundList.class)).thenReturn(boundList);
    when(boundList.size()).thenReturn("");
    assertThat(factory.create(metadata, type, context), is(nullValue()));
}