    @Test public void testShouldGenerateMMSHeaders() throws Exception {

        Message message = new MimeMessage();
        Map<String, String> map = new HashMap<String, String>();
        Date sent = new Date();

        PersonRecord person = new PersonRecord(0, null, null, null);

        map.put(Telephony.BaseMmsColumns._ID, "id");
        map.put(Telephony.BaseMmsColumns.MESSAGE_TYPE, "type");
        map.put(Telephony.BaseMmsColumns.THREAD_ID, "tid");
        map.put(Telephony.BaseMmsColumns.DATE, "date");
        map.put(Telephony.BaseMmsColumns.READ, "read");

        generator.setHeaders(message, map, DataType.MMS, "1234", person, sent, 0);

        assertThat(get(message, Headers.ID)).isEqualTo("id");
        assertThat(get(message, Headers.TYPE)).isEqualTo("type");
        assertThat(get(message, Headers.THREAD_ID)).isEqualTo("tid");
        assertThat(get(message, Headers.READ)).isEqualTo("read");
        assertThat(get(message, Headers.DATE)).isEqualTo("date");
    }