public ComputeNodeInstance loadComputeNodeInstance(final InstanceMetaData instanceMetaData) {
        ComputeNodeInstance result = new ComputeNodeInstance(instanceMetaData);
        result.getLabels().addAll(loadInstanceLabels(instanceMetaData.getId()));
        InstanceState.get(loadComputeNodeState(instanceMetaData.getId())).ifPresent(result::switchState);
        loadInstanceWorkerId(instanceMetaData.getId()).ifPresent(result::setWorkerId);
        return result;
    }
@Test
    void assertLoadComputeNodeInstance() {
        InstanceMetaData instanceMetaData = new ProxyInstanceMetaData("foo_instance_id", 3307);
        ComputeNodeInstance actual = new ComputeNodePersistService(repository).loadComputeNodeInstance(instanceMetaData);
        assertThat(actual.getMetaData(), is(instanceMetaData));
    }