@Test (expected = ObjectCreationException.class)
public void checkMethodExceptionOnWrongArgs()
        throws Exception {

    IOC.register(
            IOC.resolve(IOC.getKeyForKeyStorage(), "info.smart_tools.smartactors.iobject.ifield_name.IFieldName"),
            new ResolveByNameIocStrategy(
                    (a) -> {
                        try {
                            return new FieldName((String) a[0]);
                        } catch (Throwable e) {
                            throw new RuntimeException("Could not create new instance of FieldName", e);
                        }
                    }
            )
    );
    HandlerRoutingReceiverCreator hrrc = new HandlerRoutingReceiverCreator();
    hrrc.createObject(null, null);
    fail();
}