Add a test case for java to confirm that a deleting object don't exist