@Test
public void testUpgradeToCollectorAddressOnlyHostEmpty() {

    List<String> lines = ImmutableList.of("before=test", "collector.host=",
            "collector.port=8181", "after=test");
    List<String> newLines = PropertiesFiles.upgradeToCollectorAddressIfNeeded(lines);
    assertThat(newLines).containsExactly("before=test", "collector.address=", "after=test");
}