@Test
public void createWithMissingParentScript() {

    // Create transform request
    TransformRequest request = new TransformRequest();
    request.setScript("parent");
    request.setParent(new TransformRequest.Parent());
    // Test missing parent script
    SparkShellTransformController controller = new SparkShellTransformController();
    Response response = controller.create(request);
    Assert.assertEquals(Response.Status.BAD_REQUEST, response.getStatusInfo());
    TransformResponse entity = (TransformResponse) response.getEntity();
    Assert.assertEquals("The parent must include a script with the transformations performed.", entity.getMessage());
    Assert.assertEquals(TransformResponse.Status.ERROR, entity.getStatus());
}