@Test
public void testNoFrontendUrlWithSingleUrl() throws Exception {

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