DesktopManagerImpl implements DesktopManager { @Override public String getDesktopEnvironmentInfo( final ContainerHost containerHost ) throws CommandException { CommandResult result = containerHost.execute( Commands.getDeskEnvSpecifyCommand() ); return result.getStdOut(); }  @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 getDesktopEnvironmentInfo() throws Exception { String deskEnv = desktopManager.getDesktopEnvironmentInfo( containerHost ); assertEquals( RESULT_DESK, deskEnv ); }