[NetworkCatalogTest] Use messageParser instead of directly retrieving from Message.