@Test
    public void roundTripStateMachine() {
        StateMachine stateMachine =
            stateMachine().state("ParallelState", testParallelState())
                          .state("MapState", testMapState())
                          .state("WaitForTimestamp", testWaitForTimestamp())
                          .state("WaitForTimestampPath", testWaitForTimestampPath())
                          .state("WaitForSeconds", testWaitForSeconds())
                          .state("WaitForSecondsPath", testWaitForSecondsPath())
                          .state("ChoiceState", testChoiceState())
                          .state("FailState", testFailState())
                          .state("PassState", passState().transition(next("EndState")))
                          .state("EndState", succeedState())
                          .startAt("ParallelState")
                          .comment("This is a state machine")
                          .timeoutSeconds(180)
                          .version("1.0")
                          .build();
        CreateStateMachineResult createResult = client.createStateMachine(
            new CreateStateMachineRequest().withName(STATE_MACHINE_NAME)
                                           .withRoleArn(roleArn)
                                           .withDefinition(stateMachine));
        stateMachineArn = createResult.getStateMachineArn();

        DescribeStateMachineResult describeResult = client.describeStateMachine(
            new DescribeStateMachineRequest().withStateMachineArn(stateMachineArn));
        StatesAsserts.assertStateMachineMatches("IntegrationTestStateMachine.json",
                                                stateMachine);
        StatesAsserts.assertStateMachineMatches("IntegrationTestStateMachine.json",
                                                StateMachine.fromJson(describeResult.getDefinition()).build());
    }
Dummy date so we have a fixed time for comparison.
aws-java-sdk-stepfunctions/src/test/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilderIntegrationTest.java