@Test
public void getSerializationType() throws Exception {

    Method method = null;
    SerializationType serializationType = null;
    method = SerializationTypeTestObject.class.getMethod("methodA", (Class<?>[]) null);
    serializationType = cut.getSerializationType(method);
    assertEquals(SerializationType.JAVA, serializationType);
    method = SerializationTypeTestObject.class.getMethod("methodB", (Class<?>[]) null);
    serializationType = cut.getSerializationType(method);
    assertEquals(SerializationType.JSON, serializationType);
}