IDEX-1172: write unit-tests for creating Java source file