@Test
public void successCreateTask() throws Throwable {

    State initState = validMigrationState();
    Operation post = Operation.createPost(this.sourceFactoryUri).setBody(initState);
    State result = this.sender.sendAndWait(post, State.class);
    assertNotNull(result);
    assertEquals(initState.destinationFactoryLink, result.destinationFactoryLink);
    assertEquals(initState.destinationNodeGroupReference, result.destinationNodeGroupReference);
    assertEquals(initState.sourceFactoryLink, result.sourceFactoryLink);
    assertEquals(initState.sourceNodeGroupReference, result.sourceNodeGroupReference);
}