// TestIsServerManaged test if server is managed
func TestIsServerManaged(t *testing.T) {
	var (
		d            *ICSPTest
		c            *icsp.ICSPClient
		serialNumber string
	)
	if os.Getenv("ICSP_TEST_ACCEPTANCE") == "true" {
		d, c = getTestDriverA()
		if c == nil {
			t.Fatalf("Failed to execute getTestDriver() ")
		}
		serialNumber = d.Tc.GetTestData(d.Env, "SerialNumber").(string)
		data, err := c.IsServerManaged(serialNumber)
		log.Debugf("server managed : %v", data)
		assert.NoError(t, err, "IsServerManaged -> %s, %+v\n", err, data)
		assert.True(t, data)
		if os.Getenv("ONEVIEW_TEST_PROVISION") == "true" {
			serialNumber = d.Tc.GetTestData(d.Env, "FreeBladeSerialNumber").(string)
			data, err := c.IsServerManaged(serialNumber)
			log.Debugf("test : %v", data)
			assert.NoError(t, err, "IsServerManaged -> %s, %+v\n", err, data)
			assert.True(t, data)
		}
	}
}