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

    IObject env = mock(IObject.class);
    IField field = new Field(new FieldName("a"));
    field.in(env, null);
    fail();
}