@Test
public void bindWithAgentHolderTwice() {

    DockerInstance instance = createInstance();
    NewAgentHolderInfo agentHolderInfo = new NewAgentHolderInfo(TestUtils.createRandomSha256(),
            "", "", Collections.emptyList());
    instance.bindWithAgentHolder(agentHolderInfo);
    assertThatExceptionOfType(IllegalStateException.class).isThrownBy(() -> instance.bindWithAgentHolder(agentHolderInfo));
}