}
@Test
public void testEqualNamesNotEqualsHosts() {
final ClusterBrowser clusterBrowser = integrationTestLauncher.getHosts().get(0).getBrowser().getClusterBrowser();
final HostFactory hostFactory = AppContext.getBean(HostFactory.class);
final ResourceInfo r1 = new ResourceInfo();
r1.init("name", new LinkedHashSet<Host>(Arrays.asList(hostFactory.createInstance())), clusterBrowser);
final ResourceInfo r2 = new ResourceInfo();
r2.init("name", null, clusterBrowser);
assertTrue("equal names", r1.equals(r2));
}