String unconstrainedTaskId = "unconstrained test task";
tasks.add(new TTaskSpec(unconstrainedTaskId, null, message));
TUserGroupInfo user = new TUserGroupInfo(USER, GROUP, PRIORITY);
TSchedulingRequest schedulingRequest = new TSchedulingRequest(APP_ID, tasks, user);
// Create list of available backend nodes, with some additional nodes in additional to the
// preferred ones.
List<InetSocketAddress> backendNodes = new ArrayList<InetSocketAddress>(preferredNodes);
backendNodes.add(new InetSocketAddress("1.2.3.4", 345));