/*-
 * ============LICENSE_START=======================================================
 * OSAM
 * ================================================================================
 * Copyright (C) 2018 AT&T
 * ================================================================================
 * 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.
 * ============LICENSE_END=========================================================
 */



package org.onap.osam.factories;

import org.junit.Test;

public class MsoRequestFactoryTest {

    private MsoRequestFactory createTestSubject() {
        return new MsoRequestFactory();
    }

    @Test
    public void testCreateMsoRequest() throws Exception {
        MsoRequestFactory testSubject;
        String path = "";

        // default test
        testSubject = createTestSubject();
        testSubject.createMsoRequest(path);
    }
}
