Activation: create associations

Create activation, functional, activate associations during PSU update.

Tested: With dummy psu update service, verify the assocations are
        created when the PSU update is completed, and not created
        when PSU update fails.

Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: I3d457e65b55066b93f7fc9a3311093dcec05d020
diff --git a/test/mocked_association_interface.hpp b/test/mocked_association_interface.hpp
new file mode 100644
index 0000000..731ea58
--- /dev/null
+++ b/test/mocked_association_interface.hpp
@@ -0,0 +1,15 @@
+#pragma once
+
+#include "association_interface.hpp"
+
+#include <gmock/gmock.h>
+
+class MockedAssociationInterface : public AssociationInterface
+{
+  public:
+    virtual ~MockedAssociationInterface() = default;
+
+    MOCK_METHOD1(createActiveAssociation, void(const std::string& path));
+    MOCK_METHOD1(addFunctionalAssociation, void(const std::string& path));
+    MOCK_METHOD1(removeAssociation, void(const std::string& path));
+};