func verifySetAndGetCredential(t *testing.T, cp common.CredentialProvider, tc *testCase) {
	err := cp.SetCredential(tc.name, tc.exp)
	if err != nil {
		t.Fatalf("Failed to SetCredential on %s : %v", tc.name, err)
	}
	testGetCredential(t, cp, tc)
}
func testGetCredential(t *testing.T, cp common.CredentialProvider, tc *testCase) {
	actual, actualErr := cp.GetCredential(tc.name)
	if !reflect.DeepEqual(actual, tc.exp) {
		t.Fatalf("failed on: %s : expected %#v but got %#v", tc.name, tc.exp, actual)
	}
	if !reflect.DeepEqual(actualErr, tc.expErr) {
		t.Fatalf("failed on: %s : expected error %#v but got %#v", tc.name, tc.expErr, actualErr)
	}
}