@Test (expected = InvalidArgumentException.class)
public void checkInMethodWithTypeCastExceptionOnAbsentStrategy()
        throws Exception {

    IField field = new Field(new FieldName("a"));
    IObject env = mock(IObject.class);
    when(env.getValue(new FieldName("a"))).thenReturn(1);
    field.in(env, String.class);
    fail();
}