@DELETE
    @Path("{netId}/{ip}")
    public Response releaseIp(@PathParam("netId") String netId,
                              @PathParam("ip") String ip) {
        log.trace("Received IP release request of network " + netId);

        K8sNetwork network =
                nullIsNotFound(networkService.network(netId), NETWORK_ID_NOT_FOUND);

        ipamService.releaseIp(network.networkId(), IpAddress.valueOf(ip));

        return Response.noContent().build();
    }
@Test
    public void testReleaseIpWithCorrectNetIdAndIp() {
        expect(mockNetworkService.network(anyObject())).andReturn(k8sNetwork);
        expect(mockIpamService.releaseIp(anyObject(), anyObject())).andReturn(true);

        replay(mockNetworkService);
        replay(mockIpamService);

        final WebTarget wt = target();
        Response response = wt.path(IPAM + "/sona-network/10.10.10.2").request().delete();
        final int status = response.getStatus();

        assertEquals(204, status);

        verify(mockNetworkService);
        verify(mockIpamService);
    }