anchor.diff:          |> execute
           |> responseStatusEquals HttpStatusCode.OK
           |> responseMatches "Status" "Offline"
  +    
  +    [<Theory; AutoMockIntegrationData; Example("put-indices-id-status-1", "")>]
  +    let ``Set status of an index 'online'`` (server : TestServer, indexName : Guid) = 
  +        server
  +        |> request "POST" ("/indices/" + indexName.ToString("N"))
  +        |> execute
  +        |> responseStatusEquals HttpStatusCode.OK
  +        |> responseBodyIsNull
           |> ignore
           server
           |> request "PUT" ("/indices/" + indexName.ToString("N") + "/status/online")
           |> execute
           |> responseStatusEquals HttpStatusCode.OK
           |> responseBodyIsNull
  -        |> ignore
  -        server
  -        |> request "GET" ("/indices/" + indexName.ToString("N") + "/status")
  -        |> execute
  -        |> responseStatusEquals HttpStatusCode.OK
  -        |> responseMatches "Status" "Online"
  +    
  +    [<Theory; AutoMockIntegrationData; Example("put-indices-id-status-1", "")>]
  +    let ``Set status of an index 'offline'`` (server : TestServer, indexName : Guid) = 
  +        server
  +        |> request "POST" ("/indices/" + indexName.ToString("N"))
  +        |> withBody """
  +        {
  +            "Online" : "true"
  +        } 
  +        """
  +        |> execute
  +        |> responseStatusEquals HttpStatusCode.OK
  +        |> responseBodyIsNull
           |> ignore
           server
           |> request "PUT" ("/indices/" + indexName.ToString("N") + "/status/offline")
           |> execute
           |> responseStatusEquals HttpStatusCode.OK
           |> responseBodyIsNull
  +
  +    [<Theory; AutoMockIntegrationData; Example("get-indices-id-exists-1", "")>]
  +    let ``Check if a given index exists`` (server : TestServer, indexName : Guid) = 
  +        server
  +        |> request "GET" ("/indices/contact/exists")
  +        |> execute
  +        |> responseStatusEquals HttpStatusCode.OK
  +
  +    [<Theory; AutoMockIntegrationData; Example("get-indices-1", "")>]
  +    let ``Get all indices`` (server : TestServer, indexName : Guid) = 
  +        server
  +        |> request "GET" ("/indices")
  +        |> execute
  +        |> responseStatusEquals HttpStatusCode.OK
  +        |> responseShouldContain "contact"
positive.code:         |> responseStatusEquals HttpStatusCode.OK
          |> responseMatches "IndexName" (indexName.ToString("N"))
      
      [<Theory; AutoMockIntegrationData>]
      let ``Getting an non existing index will return error`` (server : TestServer, indexName : Guid) = 
          server
          |> request "GET" ("/indices/" + indexName.ToString("N"))
  
negative.code:         |> responseStatusEquals HttpStatusCode.OK
          |> responseBodyIsNull
      
      [<Theory; AutoMockIntegrationData; Example("post-indices-id-5", "")>]
      let ``Create an index by setting all properties`` (server : TestServer, indexName : Guid) = 
          server
          |> request "POST" ("/indices/" + indexName.ToString("N"))
          |> withBody (JsonConvert.SerializeObject(IntegrationTestHelpers.MockIndexSettings(), jsonSettings))
          |> execute
          |> responseStatusEquals HttpStatusCode.OK
          |> responseBodyIsNull
      
      [<Theory; AutoMockIntegrationData; Example("put-indices-id-1", "")>]
      let ``Update an index`` (server : TestServer, indexName : Guid) = 
          server
          |> request "POST" ("/indices/" + indexName.ToString("N"))
          |> withBody """
  