@Test
public void shouldUpgradeWildcardPermissions() throws Exception {

    // given
    Set<String> permissions = ImmutableSet.of("agent:*:view");
    // when
    permissions = SchemaUpgrade.upgradePermissions(permissions);
    // then
    assertThat(Ordering.natural().sortedCopy(permissions)).containsExactly(
            "agent:*:error", "agent:*:jvm:environment", "agent:*:jvm:gauges",
            "agent:*:transaction");
}