@Test
public void shouldExtractMultipleTags() {

    Map<String, PositionBasedTransformer.Category> mappings = new HashMap<String, PositionBasedTransformer.Category>();
    mappings.put("className", new PositionBasedTransformer.Category(
            5, "com\\.izettle\\.metrics\\.influxdb\\.tags\\..*"));
    mappings.put("function", new PositionBasedTransformer.Category(
            6, "com\\.izettle\\.metrics\\.influxdb\\.tags\\..*"));
    PositionBasedTransformer transformer = new PositionBasedTransformer(mappings);
    assertThat(transformer.getTags("com.izettle.metrics.influxdb.tags.PositionBasedTransformer.count"))
            .containsEntry("className", "PositionBasedTransformer")
            .containsEntry("function", "count");
    assertThat(transformer.getTags("com.izettle.metrics.influxdb.tags.NoopTransformer.count"))
            .containsEntry("className", "NoopTransformer")
            .containsEntry("function", "count");
}