@Override
    public void updateEndpoints(Endpoints endpoints) {
        checkNotNull(endpoints, ERR_NULL_ENDPOINTS);
        checkArgument(!Strings.isNullOrEmpty(endpoints.getMetadata().getUid()),
                ERR_NULL_ENDPOINTS_UID);

        k8sEndpointsStore.updateEndpoints(endpoints);

        log.debug(String.format(MSG_ENDPOINTS, endpoints.getMetadata().getName(), MSG_UPDATED));
    }
@Test(expected = IllegalArgumentException.class)
    public void testUpdateUnregisteredEndpoints() {
        target.updateEndpoints(ENDPOINTS);
    }