@Test
public void testCreateFilePathShouldReturnProperPath() throws IOException {

    //GIVEN
    String expected = PARENT_DIRECTORY + "/" + PACKAGE_NAME.replace(".", "/") + "/" + SIMPLE_CLASS_NAME;
    given(fileFactory.createFile(FILE_NAME)).willReturn(file);
    given(file.getParent()).willReturn(PARENT_DIRECTORY);
    given(file.getName()).willReturn(SIMPLE_CLASS_NAME);
    given(javaClassFactory.createJavaClass(classFile, FILE_NAME)).willReturn(javaClass);
    given(javaClass.getPackageName()).willReturn(PACKAGE_NAME);
    given(javaClass.getClassName()).willReturn(PACKAGE_NAME + "." + SIMPLE_CLASS_NAME);
    //WHEN
    String result = underTest.createFilePath(classFile, FILE_NAME, EXCEPTION_MESSAGE);
    //THEN
    assertEquals(result, expected);
    verify(fileFactory).createFile(FILE_NAME);
    verify(file).getParent();
    verify(file).getName();
    verify(javaClassFactory).createJavaClass(classFile, FILE_NAME);
    verify(javaClass).getPackageName();
}