	@Test
	public void testMultipleTags() throws Exception {


		Map<String, String> tagMap;

		// Verify tag map with multiple values.
		tagMap = newHashMap();
		tagMap.put("x-tag1-x", "x-tag1val-x");
		tagMap.put("x-tag2-x", "x-tag2val-x");
		tagMap.put("x-tag3-x", "x-tag3val-x");

		OpenTSDBMessageFormatter formatter =
				new OpenTSDBMessageFormatter(ImmutableList.of("Type", "Group", "Name", "Missing"), ImmutableMap.copyOf(tagMap));

		Iterable<String> strings = formatter.formatResults(
				ImmutableList.of(this.mockResult),
				ServerFixtures.dummyServer());

		Assert.assertEquals(1, Iterables.size(strings));

		String metricString = strings.iterator().next();

		Assert.assertTrue(metricString.matches("^X-DOMAIN.PKG.CLASS-X\\.X-ATT-X 0 120021.*"));
		Assert.assertTrue(metricString.matches(".*\\bhost=.*"));
		Assert.assertTrue(metricString.matches(".*\\bx-tag1-x=x-tag1val-x\\b.*"));
		Assert.assertTrue(metricString.matches(".*\\bx-tag2-x=x-tag2val-x\\b.*"));
		Assert.assertTrue(metricString.matches(".*\\bx-tag3-x=x-tag3val-x\\b.*"));

	}