@Test
public void testHandleResponse() throws Exception
{

    io.subutai.common.command.Response response = mock( io.subutai.common.command.Response.class );
    doReturn( resourceHostInfo ).when( commandProcessor ).getResourceHostInfo( anyString() );
    commandProcessor.handleResponse( response );
    verify( jsonUtil ).to( response );
    doReturn( process ).when( commands ).get( anyString() );
    commandProcessor.handleResponse( response );
    verify( hostRegistry, times( 2 ) ).updateResourceHostEntryTimestamp( anyString() );
}