@Test
public void getWarnings() {

    assertThat(new NewAgentHolderInfo(TestUtils.createRandomSha256(), "", "", Collections.emptyList())
                       .getWarnings()).
            isEmpty();
    List<String> warnings = Arrays.asList("warning1", "warning2", "warning3");
    assertThat(new NewAgentHolderInfo(TestUtils.createRandomSha256(), "", "", warnings).getWarnings()).
            containsExactlyElementsOf(warnings).
            isNotSameAs(warnings);
    assertThatExceptionOfType(UnsupportedOperationException.class).isThrownBy(() -> warnings.add("warning4"));
}