test: firmware verificationStarted: open

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ic2ce8406a51e0c8799b0138c6f4492d558d6ff3f
diff --git a/test/firmware_state_verificationstarted_unittest.cpp b/test/firmware_state_verificationstarted_unittest.cpp
index 84f2398..f491767 100644
--- a/test/firmware_state_verificationstarted_unittest.cpp
+++ b/test/firmware_state_verificationstarted_unittest.cpp
@@ -223,7 +223,19 @@
 
 /*
  * open(blob) - there is nothing you can open, this state has an open file.
- *
+ */
+TEST_F(FirmwareHandlerVerificationStartedTest,
+       AttemptToOpenImageFileReturnsFailure)
+{
+    /* Attempt to open a file one normally can open, however, as there is
+     * already a file open, this will fail.
+     */
+    getToVerificationStarted(staticLayoutBlobId);
+
+    EXPECT_FALSE(handler->open(session + 1, flags, staticLayoutBlobId));
+}
+
+/*
  * close(session) - close while state if verificationStarted without calling
  * stat first will abort.
  *