@Override
    public void createNetworkPolicy(NetworkPolicy networkPolicy) {
        checkNotNull(networkPolicy, ERR_NULL_NETWORK_POLICY);
        checkArgument(!Strings.isNullOrEmpty(networkPolicy.getMetadata().getUid()),
                ERR_NULL_NETWORK_POLICY_UID);

        k8sNetworkPolicyStore.createNetworkPolicy(networkPolicy);

        log.info(String.format(MSG_NETWORK_POLICY,
                networkPolicy.getMetadata().getName(), MSG_CREATED));
    }
@Test(expected = IllegalArgumentException.class)
    public void testCreateDuplicatedNetworkPolicy() {
        target.createNetworkPolicy(NETWORK_POLICY);
        target.createNetworkPolicy(NETWORK_POLICY);
    }