@Test
public void shouldCreateTrajectory() throws Exception {

	// build witsmlObjects list
	ArrayList<AbstractWitsmlObject> witsmlObjects;
	witsmlObjects = new ArrayList<>();
	ObjTrajectory traj = new ObjTrajectory();
	traj.setUid("traj-A");
	traj.setName("traj-A");
	witsmlObjects.add(traj);
	// build query context
	QueryContext qc = new QueryContext(
		"1.3.1.1",
		"trajectory",
		null,
		"",
		witsmlObjects,
		"goodUsername",
		"goodPassword",
		"shouldCreateTrajectory" // exchange ID
	);
	// mock delegator behavior
	when(
		this.mockDelegator.createObject(traj, qc.USERNAME, qc.PASSWORD, qc.EXCHANGE_ID, this.mockClient)
	).thenReturn(traj.getUid());
	// test
	String expected = traj.getUid();
	String actual = this.valve.createObject(qc).get();
	assertEquals(expected, actual);
}