@Test
public void testValueStateDescriptorEagerSerializer() throws Exception {

	TypeSerializer<String> serializer = new KryoSerializer<>(String.class, new ExecutionConfig());
	
	ListStateDescriptor<String> descr = 
			new ListStateDescriptor<String>("testName", serializer);
	
	assertEquals("testName", descr.getName());
	assertNotNull(descr.getSerializer());
	assertTrue(descr.getSerializer() instanceof ListSerializer);
	assertNotNull(descr.getElementSerializer());
	assertEquals(serializer, descr.getElementSerializer());
	ListStateDescriptor<String> copy = CommonTestUtils.createCopySerializable(descr);
	assertEquals("testName", copy.getName());
	assertNotNull(copy.getSerializer());
	assertTrue(copy.getSerializer() instanceof ListSerializer);
	assertNotNull(copy.getElementSerializer());
	assertEquals(serializer, copy.getElementSerializer());
}