Added test checking that approval cannot be given before case is opened.
diff --git a/component-test/src/main/java/io/mifos/portfolio/TestCommands.java b/component-test/src/main/java/io/mifos/portfolio/TestCommands.java
index dae6f62..96944a7 100644
--- a/component-test/src/main/java/io/mifos/portfolio/TestCommands.java
+++ b/component-test/src/main/java/io/mifos/portfolio/TestCommands.java
@@ -151,6 +151,20 @@
   }
 
   @Test
+  public void testApproveBeforeOpen() throws InterruptedException {
+    final Product product = createAndEnableProduct();
+    final Case customerCase = createCase(product.getIdentifier());
+
+    checkStateTransferFails(
+        product.getIdentifier(),
+        customerCase.getIdentifier(),
+        Action.APPROVE,
+        Collections.singletonList(assignEntryToTeller()),
+        APPROVE_INDIVIDUALLOAN_CASE,
+        Case.State.CREATED);
+  }
+
+  @Test
   public void testDisburseBeforeApproval() throws InterruptedException {
     final Product product = createAndEnableProduct();
     final Case customerCase = createCase(product.getIdentifier());