@Test
public void testUpgradeToCollectorAddressBothEmpty() {

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