### Question:
ValueMetaFactory { public static String getValueMetaName( int type ) { for ( IPlugin plugin : pluginRegistry.getPlugins( ValueMetaPluginType.class ) ) { if ( Integer.toString( type ).equals( plugin.getIds()[ 0 ] ) ) { return plugin.getName(); } } return "-"; } private  ValueMetaFactory(); static IValueMeta createValueMeta( String name, int type, int length, int precision ); static IValueMeta createValueMeta( String name, int type ); static IValueMeta createValueMeta( int type ); static IValueMeta cloneValueMeta( IValueMeta source ); static IValueMeta cloneValueMeta( IValueMeta source, int targetType ); static void cloneInfo( IValueMeta source, IValueMeta target ); static String[] getValueMetaNames(); static String[] getAllValueMetaNames(); static String getValueMetaName( int type ); static int getIdForValueMeta( String valueMetaName ); static List<IValueMeta> getValueMetaPluginClasses(); static IValueMeta guessValueMetaInterface( Object object ); static PluginRegistry pluginRegistry; }### Answer:
@Test public void testGetValueMetaName() { assertEquals( "-", ValueMetaFactory.getValueMetaName( Integer.MIN_VALUE ) ); assertEquals( "None", ValueMetaFactory.getValueMetaName( IValueMeta.TYPE_NONE ) ); assertEquals( "Number", ValueMetaFactory.getValueMetaName( IValueMeta.TYPE_NUMBER ) ); assertEquals( "String", ValueMetaFactory.getValueMetaName( IValueMeta.TYPE_STRING ) ); assertEquals( "Date", ValueMetaFactory.getValueMetaName( IValueMeta.TYPE_DATE ) ); assertEquals( "Boolean", ValueMetaFactory.getValueMetaName( IValueMeta.TYPE_BOOLEAN ) ); assertEquals( "Integer", ValueMetaFactory.getValueMetaName( IValueMeta.TYPE_INTEGER ) ); assertEquals( "BigNumber", ValueMetaFactory.getValueMetaName( IValueMeta.TYPE_BIGNUMBER ) ); assertEquals( "Serializable", ValueMetaFactory.getValueMetaName( IValueMeta.TYPE_SERIALIZABLE ) ); assertEquals( "Binary", ValueMetaFactory.getValueMetaName( IValueMeta.TYPE_BINARY ) ); assertEquals( "Timestamp", ValueMetaFactory.getValueMetaName( IValueMeta.TYPE_TIMESTAMP ) ); assertEquals( "Internet Address", ValueMetaFactory.getValueMetaName( IValueMeta.TYPE_INET ) ); }