// Path: event/src/main/java/io/airlift/event/client/EventTypeMetadata.java
// public static Set<EventTypeMetadata<?>> getValidEventTypeMetaDataSet(Class<?>... eventClasses)
// {
//     ImmutableSet.Builder<EventTypeMetadata<?>> set = ImmutableSet.builder();
//     for (Class<?> eventClass : eventClasses) {
//         set.add(getValidEventTypeMetadata(eventClass));
//     }
//     return set.build();
// }


import com.google.common.collect.ImmutableList;
import io.airlift.event.client.NestedDummyEventClass.NestedPart;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import java.io.ByteArrayOutputStream;
import java.time.Instant;
import java.util.Set;
import java.util.UUID;
import static com.google.common.io.ByteStreams.nullOutputStream;
import static io.airlift.event.client.ChainedCircularEventClass.ChainedPart;
import static io.airlift.event.client.EventTypeMetadata.getValidEventTypeMetaDataSet;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.testng.Assert.assertEquals;
/*
 * Copyright 2010 Proofpoint, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.airlift.event.client;




public class TestJsonEventWriter
{
    private JsonEventWriter eventWriter;

    @BeforeClass
    public void setup()
            throws Exception
    {
// Path: event/src/main/java/io/airlift/event/client/EventTypeMetadata.java
// public static Set<EventTypeMetadata<?>> getValidEventTypeMetaDataSet(Class<?>... eventClasses)
// {
//     ImmutableSet.Builder<EventTypeMetadata<?>> set = ImmutableSet.builder();
//     for (Class<?> eventClass : eventClasses) {
//         set.add(getValidEventTypeMetadata(eventClass));
//     }
//     return set.build();
// }


// Path: event/src/test/java/io/airlift/event/client/TestJsonEventWriter.java
import com.google.common.collect.ImmutableList;
import io.airlift.event.client.NestedDummyEventClass.NestedPart;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import java.io.ByteArrayOutputStream;
import java.time.Instant;
import java.util.Set;
import java.util.UUID;
import static com.google.common.io.ByteStreams.nullOutputStream;
import static io.airlift.event.client.ChainedCircularEventClass.ChainedPart;
import static io.airlift.event.client.EventTypeMetadata.getValidEventTypeMetaDataSet;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.testng.Assert.assertEquals;

/*
 * Copyright 2010 Proofpoint, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.airlift.event.client;




public class TestJsonEventWriter
{
    private JsonEventWriter eventWriter;

    @BeforeClass
    public void setup()
            throws Exception
    {
        Set<EventTypeMetadata<?>> eventTypes = getValidEventTypeMetaDataSet(