@Override
    public void createNetwork(Network osNet) {
        checkNotNull(osNet, ERR_NULL_NETWORK);
        checkArgument(!Strings.isNullOrEmpty(osNet.getId()), ERR_NULL_NETWORK_ID);

        osNetworkStore.createNetwork(osNet);

        OpenstackNetwork finalAugmentedNetwork = buildAugmentedNetworkFromType(osNet);
        augmentedNetworkMap.compute(osNet.getId(), (id, existing) -> {
            final String error = osNet.getId() + ERR_DUPLICATE;
            checkArgument(existing == null, error);
            return finalAugmentedNetwork;
        });

        log.info(String.format(MSG_NETWORK, deriveResourceName(osNet), MSG_CREATED));
    }
@Test(expected = IllegalArgumentException.class)
    public void testCreateDuplicateNetwork() {
        target.createNetwork(NETWORK);
        target.createNetwork(NETWORK);
    }