/**
  * Storage attribute: non-existent Attribute required: true Attribute required if exists: false
  * Assert throw
  */
 @Test
 public void testGetStorageAttributeIntegerValueByName_9() {
   String attributeName = "test";
   StorageEntity storageEntity = createStorageEntity();
   boolean attributeRequired = true;
   boolean attributeValueRequiredIfExists = false;
   try {
     storageDaoHelper.getStorageAttributeIntegerValueByName(
         attributeName, storageEntity, attributeRequired, attributeValueRequiredIfExists);
     fail();
   } catch (Exception e) {
     assertEquals(IllegalStateException.class, e.getClass());
     assertEquals(
         "Attribute \""
             + attributeName
             + "\" for \""
             + storageEntity.getName()
             + "\" storage must be configured.",
         e.getMessage());
   }
 }
 /**
  * Storage attribute: blank Attribute required: false Attribute required if exists: true Assert
  * throw
  */
 @Test
 public void testGetStorageAttributeIntegerValueByName_5() {
   String attributeName = "test";
   String attributeValue = BLANK_TEXT;
   StorageEntity storageEntity = createStorageEntityWithAttributes(attributeName, attributeValue);
   boolean attributeRequired = false;
   boolean attributeValueRequiredIfExists = true;
   try {
     storageDaoHelper.getStorageAttributeIntegerValueByName(
         attributeName, storageEntity, attributeRequired, attributeValueRequiredIfExists);
     fail();
   } catch (Exception e) {
     assertEquals(IllegalStateException.class, e.getClass());
     assertEquals(
         "Attribute \""
             + attributeName
             + "\" for \""
             + storageEntity.getName()
             + "\" storage must have a value that is not blank.",
         e.getMessage());
   }
 }