@Test
public void shouldUpgradeSingleAgentPermissions() throws Exception {

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