@Test
public void getLabels() {

    Map<String, String> labels = mapOf(pair("A", "1"), pair("B", "2"));
    AgentHolderInfo info = new AgentHolderInfo("42", "42", labels, "", "", Instant.MIN, false);
    assertThat(info.getLabels()).isEqualTo(mapOf(pair("A", "1"), pair("B", "2")));
    labels.put("C", "3");
    assertThat(info.getLabels()).isEqualTo(mapOf(pair("A", "1"), pair("B", "2")));
    assertThatExceptionOfType(UnsupportedOperationException.class).isThrownBy(() -> info.getLabels().put("C", "3"));
}