@Test
public void shouldUpgradeMultiAgentPermissions() throws Exception {

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