@Test public void hasSameContextAfterDeserialization() throws Exception { SessionManagerImpl managerRead = serializeAndDeserializeSessionManager(); assertThat(managerRead.getContext()).isNotNull(); assertThat(managerRead.getContext()).isEqualTo(sessionManager.getContext()); }
@Test public void hasConfiguredAndStandardValuesWhenCreated() throws Exception { assertThat(sessionManager.getContext()).isInstanceOf(DummyContext.class); assertThat(sessionManager.getConfig().getName()).isEqualTo("name"); assertThat(sessionManager.getConverterCache()).isNotNull(); assertThat(sessionManager.getBapiMappings()).isNotNull(); assertThat(sessionManager.getExecutionInterceptors()).isNotNull(); }