DesktopManagerImpl implements DesktopManager { @Override public String getRDServerInfo( final ContainerHost containerHost ) throws CommandException { CommandResult result = containerHost.execute( Commands.getRDServerSpecifyCommand() ); String stdOut = result.getStdOut(); if ( stdOut != null && !stdOut.isEmpty() ) { stdOut = stdOut.replace( " [ + ] ", "" ); stdOut = stdOut.replace( "\n", "" ); } return stdOut; }  @Override boolean isDesktop( final ContainerHost containerHost ); @Override String getDesktopEnvironmentInfo( final ContainerHost containerHost ); @Override String getRDServerInfo( final ContainerHost containerHost ); @Override void copyKeys( final ContainerHost containerHost ); @Override void createSSHDir( final ContainerHost containerHost ); @Override void createDesktopUser( final ContainerHost containerHost ); @Override boolean existInCache( final String containerId ); @Override void invalidate( final String containerId ); @Override void hostIsDesktop( final String containerId ); @Override void hostIsNotDesktop( final String containerId );  }
@Test public void getRDServerInfo() throws Exception { String rdServer = desktopManager.getRDServerInfo( containerHost ); assertEquals( RESULT_RDS, rdServer ); }