BUG 2325 : Value type of byte[] not recognized by the NormalizedNodeSerializer
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / test / java / org / opendaylight / controller / cluster / datastore / node / utils / serialization / ValueTypeTest.java
1 package org.opendaylight.controller.cluster.datastore.node.utils.serialization;
2
3 import org.junit.Test;
4
5 import static org.junit.Assert.assertEquals;
6
7 public class ValueTypeTest {
8
9     @Test
10     public void testGetSerializableType(){
11         byte[] b = new byte[10];
12         b[0] = 1;
13         b[2] = 2;
14
15         ValueType serializableType = ValueType.getSerializableType(b);
16         assertEquals(ValueType.BINARY_TYPE, serializableType);
17     }
18 }