<commit_before>package org.lightmare;

import java.io.IOException;
import java.util.Arrays;

import org.junit.Assert;
import org.junit.Test;
import org.lightmare.utils.RpcUtils;

public class SerializationTest {

    @Test
    public void nullTest() {

	try {
	    byte[] nullBt = RpcUtils.serialize(null);
	    System.out.println(Arrays.toString(nullBt));
	    Object value = RpcUtils.deserialize(nullBt);
	    System.out.println(value);

	    Assert.assertNull("null serializetion is not valid", value);

	} catch (IOException ex) {<commit_msg>improved test cases for NativeSerializer class<commit_after>package org.lightmare;

import java.io.IOException;
import java.util.Arrays;

import org.junit.Assert;
import org.junit.Test;
import org.lightmare.utils.serialization.NativeSerializer;

public class SerializationTest {

    @Test
    public void nullTest() {

	try {
	    byte[] nullBt = NativeSerializer.serialize(null);
	    System.out.println(Arrays.toString(nullBt));
	    Object value = NativeSerializer.deserialize(nullBt);
	    System.out.println(value);

	    Assert.assertNull("null serializetion is not valid", value);

	} catch (IOException ex) {
{'fraction_non_alphanumeric': 0.10920034393809114, 'fraction_numerical': 0.0, 'mean_word_length': 4.364055299539171, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7243575', 'n_tokens_mistral': 365, 'n_tokens_neox': 351, 'n_words': 79}