GetIdCommand extends SubutaiShellCommandSupport { @Override protected Object doExecute() throws Exception { String id = peerManager.getLocalPeer().getId(); System.out.println( "SUBUTAI ID: " + id ); return null; }  void setPeerManager( final PeerManager peerManager );  }
@Test public void testDoExecute() throws Exception { command.doExecute(); assertTrue( getSysOut().contains( ID ) ); }