// verifications
Messages messages = response.getMessages();
assertThat(messages.size()).isEqualTo(3);
Collection<Message> defaultMessages = messages.getBy(IField.DEFAULT);
assertThat(defaultMessages).isNotEmpty();
new MessageAssert(defaultMessages.iterator().next())
.hasField(IField.DEFAULT)
.hasExitCode(-1)
.hasText("Added mysql-5.1 to application springeap6");
Collection<Message> resultMessages = messages.getBy(IField.RESULT);
assertThat(resultMessages).isNotEmpty();
new MessageAssert(resultMessages.iterator().next())
.hasField(IField.RESULT)
.hasExitCode(0)
.hasText(
"\nMySQL 5.1 database added. Please make note of these credentials:\n\n"
+ " Root User: adminnFC22YQ\n Root Password: U1IX8AIlrEcl\n Database Name: springeap6\n\n"
+ "Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/\n\n"
+ "You can manage your new MySQL database by also embedding phpmyadmin-3.4.\n"
+ "The phpmyadmin username and password will be the same as the MySQL credentials above.\n");
Collection<Message> appInfoMessages = messages.getBy(IField.APPINFO);
assertThat(appInfoMessages).isNotEmpty();
new MessageAssert(appInfoMessages.iterator().next())
.hasField(IField.APPINFO)
.hasExitCode(0)
.hasText("Connection URL: mysql://127.13.125.1:3306/\n");
assertThat(response.getDataType()).isEqualTo(EnumDataType.cartridge);