DesktopManagerImpl implements DesktopManager { @Override public boolean isDesktop( final ContainerHost containerHost ) throws CommandException { String deskEnvResult = getDesktopEnvironmentInfo( containerHost ); String rdSerResult = getRDServerInfo( containerHost ); if ( deskEnvResult != null && rdSerResult != null ) { if ( !deskEnvResult.isEmpty() && !rdSerResult.isEmpty() ) { return true; } } return false; }  @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 @Ignore public void isDesktop() throws Exception { boolean isDekstop = desktopManager.isDesktop( containerHost ); assertTrue( isDekstop ); }