@Test
public void testInvalidFirstFieldInGroup() throws Exception {

    final News news = new News();
    news.set(new Headline("Test"));
    final News.NoRelatedSym relatedSym = new News.NoRelatedSym();
    relatedSym.set(new SecurityID("SECID"));
    relatedSym.set(new SecurityIDSource("SECID_SOURCE"));
    news.addGroup(relatedSym);
    try {
        new Message(news.toString(), DataDictionaryTest.getDictionary());
    } catch (final InvalidMessage e) {
        // expected
    } catch (final NullPointerException e) {
        fail("Should not throw NPE when first field is missing.");
    }
}