@Test
public void getAgentHolderSpec() {

    assertThatExceptionOfType(NullPointerException.class).isThrownBy(() -> CreateAgentParameters.from(null));
    Node spec = Node.EMPTY_OBJECT.editNode().put("foo", "bar").saveNode();
    assertThat(CreateAgentParameters.from(spec).getAgentHolderSpec()).isSameAs(spec);
}