	@Test
	public void testCreateLocalCatalog() throws PEException {

		final DVEClientToolTestConsole console = new DVEClientToolTestConsole(new DVEConfigCLI(null));

		console.executeInteractiveCommand("delete catalog", "y");
		console.executeCommand("setup localhost catalog 5 5");

		// Create a CatalogDAO to verify the contents
		CatalogDAO c = CatalogDAOFactory.newInstance();

		// Verify we have the correct PersistentSites
		List<PersistentSite> sites = c.findAllPersistentSites();

		assertTrue("Should have 6 persistent sites", sites.size() == 6);

		// We expect to have 5 sites we just created
		for (int i = 1; i < sites.size(); i++) {
			verifySingleSite(c, CatalogHelper.DEFAULT_SITE_PREFIX + i, CatalogHelper.DEFAULT_SITE_PREFIX + i, CATALOG_URL);
		}

		// All of the persistent sites should be in the default persistent group
		verifyGroup(c, PEConstants.DEFAULT_GROUP_NAME, 5);

		// Verify dynamic site provider
		Provider provider = verifyProvider(c, TEST_PROVIDER, 1);

		// Verify default policy
		String defaultPolicyName = KnownVariables.DYNAMIC_POLICY.lookupPersistentConfig(c).getValue();
		assertEquals(DEFAULT_POLICY, defaultPolicyName);

		// Verify policy count
		List<DynamicPolicy> policies = c.findAllDynamicPolicies();
		assertTrue("Should have 1 dynamic policy", policies.size() == 1);

		// Verify the Dynamic Site Policy
		DynamicPolicy matchPolicy = new DynamicPolicy(DEFAULT_POLICY, true, provider.getName(), LOCAL, 1,
				provider.getName(), LOCAL, 3, provider.getName(), LOCAL, 3, provider.getName(), LOCAL, 5);

		verifyPolicy(c.findDynamicPolicy(defaultPolicyName), matchPolicy);

		c.close();
		console.close();
		console.assertValidConsoleOutput();
	}