@Test
public void shouldSaveLinks() {
Settings settings = new Settings();
settings.setProperty(CoreProperties.LINKS_HOME_PAGE, "http://home");
DefaultI18n defaultI18n = mock(DefaultI18n.class);
when(defaultI18n.message(Locale.getDefault(), "project_links.homepage", CoreProperties.LINKS_HOME_PAGE)).thenReturn("HOME");
Project project = mock(Project.class);
SensorContext context = mock(SensorContext.class);
new ProjectLinksSensor(settings, defaultI18n).analyse(project, context);