var http = require("http"),
    server = {},
    fullUpdate = {
      fullUpdate: true,
      index: 1,
      deletes: [],
      updates: [
        {
          serviceType: 'discovery',
          annoucementId: '1234-5678',
          serviceUri: 'http://127.0.0.1:8888'
        }
      ]
    },
    lease = {
      serviceType: 'myservice',
      annoucementId: '1234-5678',
      serviceUri: 'http://myservice.domain.com'
    };

module.exports = function(grunt){
    grunt.registerTask('start-server', function(){
        server = http.createServer(function(request, response) {
          if(request.method == 'POST'){
            response.writeHead(201, {"content-type": "application/json"});
            response.write(JSON.stringify(lease));
          }else{
            response.writeHead(200, {"content-type": "application/json"});
            response.write(JSON.stringify(fullUpdate));
          }
          
          response.end();
        }).listen(8888);
    });
};

@@ -186,32 +186,33 @@
 %0A          annou
+n
 cementId: '1234-
@@ -203,32 +203,24 @@
 cementId: '1
-234-5678
 ',%0A         
@@ -256,16 +256,158 @@
 1:8888'%0A
+        %7D,%0A        %7B%0A          serviceType: 'myservice',%0A          announcementId: '2',%0A          serviceUri: 'http://myservice-1.domain.com'%0A
         
@@ -480,16 +480,17 @@
    annou
+n
 cementId
@@ -496,17 +496,9 @@
 d: '
-1234-5678
+3
 ',%0A 
@@ -531,16 +531,18 @@
 yservice
+-2
 .domain.
@@ -1030,26 +1030,16 @@
       %7D%0A
-          
 %0A       

fix spelling error on announcementId field