import net.buffalo.protocal.BuffaloProtocal;
import junit.framework.TestCase;
public class DeserializerFunctionalTest extends TestCase {
public void testShouldDeserialize() throws Exception {
BuffaloCall call = BuffaloProtocal.getInstance().deserialize("<buffalo-call>" +
"<method>sum</method>" +
"<double>0.1</double>" +
"<double>0.2</double>" +
"</buffalo-call>");
assertEquals("sum", call.getMethodName());
assertEquals(2, call.getArguments().length);
assertTrue(call.getArguments()[0] instanceof Double);
}