// Path: ersatz/src/main/java/io/github/cjstehno/ersatz/encdec/MimeTypes.java
// public interface MimeTypes {
// 
//     /**
//      * Creates a <code>MimeType</code> object from the specified string designator. If a parsing exception is thrown, it
//      * will be wrapped in an <code>IllegalArgumentException</code> and rethrown.
//      *
//      * @param value the mime-type text value
//      * @return the wrapped MimeType
//      */
//     static MimeType createMimeType(final String value) {
//         try {
//             return new MimeType(value);
//         } catch (MimeTypeParseException e) {
//             throw new IllegalArgumentException(e.getMessage());
//         }
//     }
// }


import io.github.cjstehno.ersatz.encdec.MimeTypes;
import lombok.val;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
/**
 * Copyright (C) 2022 Christopher J. Stehno
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.github.cjstehno.ersatz.encdec;



class MimeTypesTest {

    @Test @DisplayName("valid mime type")
    void validMimeType() {
// Path: ersatz/src/main/java/io/github/cjstehno/ersatz/encdec/MimeTypes.java
// public interface MimeTypes {
// 
//     /**
//      * Creates a <code>MimeType</code> object from the specified string designator. If a parsing exception is thrown, it
//      * will be wrapped in an <code>IllegalArgumentException</code> and rethrown.
//      *
//      * @param value the mime-type text value
//      * @return the wrapped MimeType
//      */
//     static MimeType createMimeType(final String value) {
//         try {
//             return new MimeType(value);
//         } catch (MimeTypeParseException e) {
//             throw new IllegalArgumentException(e.getMessage());
//         }
//     }
// }


// Path: ersatz/src/test/java/io/github/cjstehno/ersatz/encdec/MimeTypesTest.java
import io.github.cjstehno.ersatz.encdec.MimeTypes;
import lombok.val;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;

/**
 * Copyright (C) 2022 Christopher J. Stehno
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.github.cjstehno.ersatz.encdec;



class MimeTypesTest {

    @Test @DisplayName("valid mime type")
    void validMimeType() {
        val mt = MimeTypes.createMimeType("text/plain");