Do you mean create

A - B
  \
   C - D - F
    \      /
     E -

And then rebase F onto B?

I tried that and it failed as expected;

org.eclipse.jgit.api.errors.MultipleParentsNotAllowedException: Can only cherry-pick commits which have exactly one parent
	at org.eclipse.jgit.api.CherryPickCommand.call(CherryPickCommand.java:126)
	at org.eclipse.jgit.api.RebaseCommand.call(RebaseCommand.java:256)
	at org.eclipse.jgit.api.RebaseCommandTest.testRebaseFailsCantCherryPickMergeCommits(RebaseCommandTest.java:206)