test: firmware verificationCompleted: writeMeta

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ia39654611c247cb2354a5ca6a211f2d870575963
diff --git a/test/firmware_state_verificationcompleted_unittest.cpp b/test/firmware_state_verificationcompleted_unittest.cpp
index bb7e8ca..e5c3f43 100644
--- a/test/firmware_state_verificationcompleted_unittest.cpp
+++ b/test/firmware_state_verificationcompleted_unittest.cpp
@@ -183,6 +183,14 @@
 /*
  * writemeta(session) - write meta should fail.
  */
+TEST_F(FirmwareHandlerVerificationCompletedTest,
+       WriteMetaToVerifyBlobReturnsFailure)
+{
+    getToVerificationCompleted(VerifyCheckResponses::success);
+
+    std::vector<std::uint8_t> bytes = {0x01, 0x02};
+    EXPECT_FALSE(handler->writeMeta(session, 0, bytes));
+}
 
 /*
  * write(session) - write should fail.