Test case for DATAMONGO-562

A test case that shows the bug described in https://jira.springsource.org/browse/DATAMONGO-562