public class SerializationTest {
@Test
public void testSerializationForIssue2() throws Exception {
TabNavigation nvigation = new TabNavigation();
nvigation.setState("123");
nvigation.setPageTransition(PageTransition.TYPED);
byte[] data = TabNavigationSerializer.serialize(nvigation);
TabNavigation result = TabNavigationSerializer.parseFrom(data);
assertEquals(nvigation.getState(), result.getState());
assertEquals(nvigation.getPageTransition(), result.getPageTransition());
}