@Test
public void getTaskId() {

    DockerInstance instance = createInstance();
    assertThat(instance.getTaskId()).isEmpty();
    String id = TestUtils.createRandomSha256();
    instance.setTaskId(id);
    assertThat(instance.getTaskId().get()).isEqualTo(id);
    assertThatExceptionOfType(NullPointerException.class).isThrownBy(() -> instance.setTaskId(null));
}