@Test
public void testNoFrontendUrlWithMultipleUrlIpport() throws Exception {

    Map<URI, URI> ipports = new HashMap<>();
    ipports.put(DEFAULT_GRAPHITE_URL, DEFAULT_GRAPHITE_IPPORT);
    ipports.put(OTHER_GRAPHITE_URL, OTHER_GRAPHITE_IPPORT);
    when(graphiteSources.getIpportsByUrl()).thenReturn(ipports);
    when(this.graphiteSources.getSources()).thenReturn(Stream
        .of(new GraphiteSources.GraphiteSource(DEFAULT_GRAPHITE_URL, DEFAULT_GRAPHITE_IPPORT),
            new GraphiteSources.GraphiteSource(OTHER_GRAPHITE_URL, OTHER_GRAPHITE_IPPORT)).collect(Collectors.toList()));
    Alarm frontendAlarm = TestUtils.getDefaultAlarm();
    frontendAlarm.setGraphiteBaseUrl(null);
    Alarm backendAlarm = alarmMapper.mapNewAlarmFormToSeyren(frontendAlarm);
    assertEquals(OTHER_GRAPHITE_IPPORT, backendAlarm.getGraphiteBaseUrl());
}