@Test (expected = ChangeValueException.class)
public void checkOutMethodExceptionOnWrongArgs()
        throws Exception {

    IResolveDependencyStrategy strategy1 = mock(IResolveDependencyStrategy.class);
    IOC.resolve(
            Keys.getOrAdd(IResolveDependencyStrategy.class.getCanonicalName()),
            "GetValue",
            strategy1
    );
    IObject rule = mock(IObject.class);
    IObject env = mock(IObject.class);
    when(rule.getValue(new FieldName("name"))).thenReturn("wds_target_strategy");
    when(rule.getValue(new FieldName("args"))).thenReturn(new ArrayList<String>(){{add("response/getInt");}});
    IField field = new WDSObjectField(new ArrayList<IObject>(){{add(rule);}});
    // value of 'message/getInt' is undefined
    field.out(env, 1);
    fail();
}