flags.add(Flags.Flag.RECENT);
flags.add(Flags.Flag.FLAGGED);
flags.add("userFlag1");
flags.add("userFlag2");
UUID uuid = UUID.randomUUID();
final SimpleMessage message = new SimpleMessage(new Date(), 100, 10, null, flags, new PropertyBuilder(), uuid);
Put put = flagsToPut(message, flags);
//test for the system flags
assertTrue(put.has(MESSAGES_META_CF, FLAGS_SEEN, MARKER_PRESENT));
assertTrue(put.has(MESSAGES_META_CF, FLAGS_DRAFT, MARKER_PRESENT));
assertTrue(put.has(MESSAGES_META_CF, FLAGS_RECENT, MARKER_PRESENT));