+static std::map<int,int> mapExample;
+static int itemIndex = 0;
+
+static mapExample.insert(std::make_pair(0,1));
+static mapExample.insert(std::make_pair(1,1));
+static mapExample.insert(std::make_pair(2,1));
+static mapExample.insert(std::make_pair(5,1));
+static mapExample.insert(std::make_pair(500,1));
+static mapExample.insert(std::make_pair(2415,1));
+static mapExistsStatus = false;
+
+TEST(CommonFunctions, GivenMapExistsStatusIsFalseAndItemIndexIs0WhenMapDataExistsIsCalledThenConfirmItemIndex0DoesExist)
+{
+
+ // Tests for checking that map data exists.
+
+ // Given
+
+ mapExistsStatus = false;
+ itemIndex = 0;
+
+ // When
+
+ mapExistsStatus = MapDataExists(&itemIndex, &mapExample);
+
+ // Then
+
+ ASSERT_EQ(true, mapExistsStatus);
+
+}
+
+TEST(CommonFunctions, GivenMapExistsStatusIsFalseAndItemIndexIs1WhenMapDataExistsIsCalledThenConfirmItemIndex1DoesExist)
+{
+
+ // Tests for checking that map data exists.
+
+ // Given
+
+ mapExistsStatus = false;
+ itemIndex = 1;
+
+ // When
+
+ mapExistsStatus = MapDataExists(&itemIndex, &mapExample);
+
+ // Then
+
+ ASSERT_EQ(true, mapExistsStatus);
+
+}
+
+TEST(CommonFunctions, GivenMapExistsStatusIsFalseAndItemIndexIs2WhenMapDataExistsIsCalledThenConfirmItemIndex2DoesExist)
+{
+
+ // Tests for checking that map data exists.
+
+ // Given
+
+ mapStatusExists = false;
+ itemIndex = 2;
+
+ // When
+
+ mapStatusExists = MapDataExists(&itemIndex, &mapExample);
+
+ // Then
+
+ ASSERT_EQ(true, mapStatusExists);
+
+}
+
+TEST(CommonFunctions, GivenMapExistsStatusIsTrueAndItemIndexIs3WhenMapDataExistsIsCalledThenConfirmItemIndex3DoesntExist)
+{
+
+ // Tests for checking that map data exists.
+
+ // Given
+
+ mapStatusExists = true;
+ itemIndex = 3;
+
+ // When
+
+ mapStatusExists = MapDataExists(&itemIndex, &mapExample);
+
+ // Then
+
+ ASSERT_EQ(false, mapStatusExists);
+
+}
+
+TEST(CommonFunctions, GivenMapExistsStatusIsFalseAndItemIndexIs5WhenMapDataExistsIsCalledThenConfirmItemIndex5DoesExist)
+{
+
+ // Tests for checking that map data exists.
+
+ // Given
+
+ mapStatusExists = false;
+ itemIndex = 5;
+
+ // When
+
+ mapStatusExists = MapDataExists(&itemIndex, &mapExample);
+
+ // Then
+
+ ASSERT_EQ(true, mapStatusExists);
+
+}
+
+TEST(CommonFunctions, GivenMapExistsStatusIsTrueAndItemIndexIs6WhenMapDataExistsIsCalledThenConfirmItemIndex6DoesntExist)
+{