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

        k8sEndpointsStore.createEndpoints(endpoints);

        log.info(String.format(MSG_ENDPOINTS, endpoints.getMetadata().getName(), MSG_CREATED));
    }
@Test(expected = NullPointerException.class)
    public void testCreateNullEndpoints() {
        target.createEndpoints(null);
    }