### Question:
FsEntryHBaseCommon { public static byte[] createColSpec(Object o, String colName) { return createColSpec(typeVal(o), colName); }  static byte typeVal(Object o); static byte[] createColSpec(Object o, String colName); static byte[] createColSpec(byte type, String colName); static String colName(byte[] colSpec); @SuppressWarnings("fallthrough") static Object unmarshall(byte[] colSpec, byte[] colVal); static void populate(Map<byte[], byte[]> input, Map<String,Object> out, Map<String, StreamProxy> streams); static final byte LONG; static final byte STRING; static final byte DATE; static final byte JSON; static final byte BYTE_ARRAY; static final byte BUFFER_STREAM; static final byte FILE_STREAM; }### Answer:
@Test public void testCreateColSpec() { ByteArrayOutputStream stream = new ByteArrayOutputStream(); stream.write(0); stream.write(65); byte[] expected = stream.toByteArray(); byte[] actual = createColSpec(7L, "A"); assertEquals(expected.length, actual.length); assertEquals(2, actual.length); assertEquals(expected[0], actual[0]); assertEquals(expected[1], actual[1]); }