assertEquals(result.getAvailableNetworks(), ImmutableSet.of());
}
public void test1net() {
InputStream is = getClass().getResourceAsStream("/vdc-1net.xml");
Injector injector = Guice.createInjector(new SaxParserModule());
Factory factory = injector.getInstance(ParseSax.Factory.class);
VDC result = factory.create(injector.getInstance(VDCHandler.class)).parse(is);
assertEquals(result.getName(), "demo6");
assertEquals(result.getDescription(),
"ServiceProfileName = Essential; ServiceLocation = US_WEST; Email = red@chair.com;");
assertEquals(result.getStatus(), Status.DEPLOYED);
assertEquals(result.getResourceEntities(), ImmutableSet.of(new ResourceImpl("1001", "Host1",