@Test
public void testCreateModel() throws Exception {

    // Mock file retrieval
    File testFile = new File("testFile");
    File[] testList = new File[1];
    testList[0] = testFile;
    File impl = Mockito.mock(File.class);
    when(impl.listFiles()).thenReturn(testList);
    when(impl.isFile()).thenReturn(true);
    // Mock internal dictionary retrieval
    CommonClassDaoImpl daoImpl = Mockito.mock(CommonClassDaoImpl.class);
    when(daoImpl.getDataById(any(), anyString(), anyString()))
        .thenReturn(Collections.emptyList());
    // Test create methods
    String testFileName = "testFile.yml";
    String testVal = "testVal";
    CreateNewMicroServiceModel model =
        new CreateNewMicroServiceModel(testFileName, testVal, testVal, testVal, testVal);
    assertEquals(1, model.addValuesToNewModel(".yml").size());
}