// Path: src/main/java/net/ozwolf/mockserver/raml/internal/domain/ValidationErrors.java
// public class ValidationErrors {
//     private final List<String> messages;
// 
//     public ValidationErrors() {
//         this.messages = newArrayList();
//     }
// 
//     public void addMessage(String error, Object... formattedParameters) {
//         this.messages.add(String.format(error, formattedParameters));
//     }
// 
//     public void combineWith(ValidationErrors errors) {
//         this.messages.addAll(errors.getMessages());
//     }
// 
//     public boolean isInError() {
//         return !this.messages.isEmpty();
//     }
// 
//     public List<String> getMessages() {
//         return messages;
//     }
// }
// 
// Path: src/test/java/net/ozwolf/mockserver/raml/util/Fixtures.java
// public static String fixture(String resource) throws IOException {
//     return IOUtils.toString(Fixtures.class.getClassLoader().getResourceAsStream(resource))
//             .replaceAll("\r\n", "\n");
// }


import net.ozwolf.mockserver.raml.internal.domain.ValidationErrors;
import org.junit.Test;
import org.raml.model.MimeType;
import java.io.IOException;
import static net.ozwolf.mockserver.raml.util.Fixtures.fixture;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
package net.ozwolf.mockserver.raml.internal.domain.body;




public class JsonBodySpecificationTest {
    @Test
    public void shouldValidateSchemaAndEntityAsCorrect() throws IOException {
// Path: src/main/java/net/ozwolf/mockserver/raml/internal/domain/ValidationErrors.java
// public class ValidationErrors {
//     private final List<String> messages;
// 
//     public ValidationErrors() {
//         this.messages = newArrayList();
//     }
// 
//     public void addMessage(String error, Object... formattedParameters) {
//         this.messages.add(String.format(error, formattedParameters));
//     }
// 
//     public void combineWith(ValidationErrors errors) {
//         this.messages.addAll(errors.getMessages());
//     }
// 
//     public boolean isInError() {
//         return !this.messages.isEmpty();
//     }
// 
//     public List<String> getMessages() {
//         return messages;
//     }
// }
// 
// Path: src/test/java/net/ozwolf/mockserver/raml/util/Fixtures.java
// public static String fixture(String resource) throws IOException {
//     return IOUtils.toString(Fixtures.class.getClassLoader().getResourceAsStream(resource))
//             .replaceAll("\r\n", "\n");
// }


// Path: src/test/java/net/ozwolf/mockserver/raml/internal/domain/body/JsonBodySpecificationTest.java
import net.ozwolf.mockserver.raml.internal.domain.ValidationErrors;
import org.junit.Test;
import org.raml.model.MimeType;
import java.io.IOException;
import static net.ozwolf.mockserver.raml.util.Fixtures.fixture;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

package net.ozwolf.mockserver.raml.internal.domain.body;




public class JsonBodySpecificationTest {
    @Test
    public void shouldValidateSchemaAndEntityAsCorrect() throws IOException {
        String schema = fixture("apispecs-test/schemas/greeting-response.json");