@Parameterized.Parameters
    public static Collection<Object[]> data() {
        return Arrays.asList(new Object[][] {
            {
                // PassState#result
                new Handler() {

                    @Override
                    public String setString(String json) {
                        return build(newPassState().result(json));
                    }

                    @Override
                    public String setPojo(Object pojo) {
                        return build(newPassState().result(pojo));
                    }

                    private String build(PassState.Builder result) {
                        return result.build().getResult();
                    }

                }
            },
            // PassState#parameters
            {
                new Handler() {

                    @Override
                    public String setString(String json) {
                        return build(newPassState().parameters(json));
                    }

                    @Override
                    public String setPojo(Object pojo) {
                        return build(newPassState().parameters(pojo));
                    }

                    private String build(PassState.Builder result) {
                        return result.build().getParameters();
                    }
                }
            },
            // TaskState#parameters
            {
                new Handler() {

                    @Override
                    public String setString(String json) {
                        return build(newTaskState().parameters(json));
                    }

                    @Override
                    public String setPojo(Object pojo) {
                        return build(newTaskState().parameters(pojo));
                    }

                    private String build(TaskState.Builder result) {
                        return result.build().getParameters();
                    }
                }
            },
            // ParallelState#parameters
            {
                new Handler() {

                    @Override
                    public String setString(String json) {
                        return build(newParallelState().parameters(json));
                    }

                    @Override
                    public String setPojo(Object pojo) {
                        return build(newParallelState().parameters(pojo));
                    }

                    private String build(ParallelState.Builder result) {
                        return result.build().getParameters();
                    }
                }
            },
            // MapState#parameters
            {
                    new Handler() {

                        @Override
                        public String setString(String json) {
                            return build(newMapState().parameters(json));
                        }

                        @Override
                        public String setPojo(Object pojo) {
                            return build(newMapState().parameters(pojo));
                        }

                        private String build(MapState.Builder result) {
                            return result.build().getParameters();
                        }
                    }
            }
        });
    }
@return The collection of test objects to run.
aws-java-sdk-stepfunctions/src/test/java/com/amazonaws/services/stepfunctions/builder/JsonDocumentSettersTest.java