form.field( "BUNDLE_NAME", bundle.getName() );
form.field( "ENDPOINT_ID", receivingFromEndpoint.getId() );
form.bodyPart( new FileDataBodyPart( "bundle", newBundleFile, MediaType.MULTIPART_FORM_DATA_TYPE ) );
//Sending bundle to endpoint
WebResource resource = client.resource( receivingFromEndpoint.toURL() + "/api/bundlePublisher/publish" );
ClientResponse clientResponse = resource.type( MediaType.MULTIPART_FORM_DATA ).post( ClientResponse.class, form );
//Validations
assertEquals( clientResponse.getClientResponseStatus().getStatusCode(), HttpStatus.SC_OK );
//Get current status dates