@Test
public void testHandleViaJsonAndBuildCommand() {

	final MockHttpServletRequest request = new MockHttpServletRequest();
	final String payload = "{}";
	
	final String commandUri = "/Acme/abc/def/p/home/_new&execute";
	final Command expectedCommand = CommandBuilder.withUri(commandUri).getCommand();
	final MultiOutput expected = new MultiOutput(commandUri, new ExecutionContext(expectedCommand), Action._new, Behavior.$execute);
	
	Mockito.when(this.builder.build(request)).thenReturn(expectedCommand);
	Mockito.when(this.gateway.execute(expectedCommand, payload)).thenReturn(expected);
	final Object actual = this.testee.handle(request, payload);
	Mockito.verify(this.builder, Mockito.only()).build(request);
	Mockito.verify(this.gateway, Mockito.times(1)).execute(expectedCommand, payload);
	
	Assert.assertEquals(expected, actual);
}