@Test
public void testValidExternalExports() throws Exception {

	File f = this.folder.newFile();
	Utils.writeStringInto( "exports: HAProxy.ip as lb-ip, HAProxy.httpPort as lb-port", f );
	ApplicationTemplateDescriptor desc = ApplicationTemplateDescriptor.load( f );
	Assert.assertEquals( 0, desc.invalidExternalExports.size());
	Assert.assertEquals( 2, desc.externalExports.size());
	Assert.assertEquals( "lb-ip", desc.externalExports.get( "HAProxy.ip" ));
	Assert.assertEquals( "lb-port", desc.externalExports.get( "HAProxy.httpPort" ));
}