### Question:
NumericNormalizer extends Normalizer implements PreparedNormalizer { public Value normalize( Value value ) throws LdapException { String normalized = normalize( value.getString() ); return new Value( normalized ); } NumericNormalizer(); Value normalize( Value value ); @Override String normalize( String value ); @Override String normalize( String value, PrepareString.AssertionType assertionType );  }### Answer:
@Test public void testNumericNormalizerNull() throws LdapException { Normalizer normalizer = new NumericNormalizer(); assertEquals( null, normalizer.normalize( ( String ) null ) ); }
@Test public void testNumericNormalizerEmpty() throws LdapException { Normalizer normalizer = new NumericNormalizer(); assertEquals( "", normalizer.normalize( "" ) ); }
@Test public void testNumericNormalizerOneSpace() throws LdapException { Normalizer normalizer = new NumericNormalizer(); assertEquals( "", normalizer.normalize( " " ) ); }
@Test public void testNumericNormalizerTwoSpaces() throws LdapException { Normalizer normalizer = new NumericNormalizer(); assertEquals( "", normalizer.normalize( " " ) ); }
@Test public void testNumericNormalizerNSpaces() throws LdapException { Normalizer normalizer = new NumericNormalizer(); assertEquals( "", normalizer.normalize( " " ) ); }
@Test public void testInsignifiantSpacesStringOneChar() throws LdapException { Normalizer normalizer = new NumericNormalizer(); assertEquals( "1", normalizer.normalize( "1" ) ); }
@Test public void testInsignifiantSpacesStringTwoChars() throws LdapException { Normalizer normalizer = new NumericNormalizer(); assertEquals( "11", normalizer.normalize( "11" ) ); }
@Test public void testInsignifiantSpacesStringNChars() throws LdapException { Normalizer normalizer = new NumericNormalizer(); assertEquals( "123456", normalizer.normalize( "123456" ) ); }
@Test public void testInsignifiantNumericCharsSpaces() throws LdapException { Normalizer normalizer = new NumericNormalizer(); assertEquals( "1", normalizer.normalize( " 1" ) ); assertEquals( "1", normalizer.normalize( "1 " ) ); assertEquals( "1", normalizer.normalize( " 1 " ) ); assertEquals( "11", normalizer.normalize( "1 1" ) ); assertEquals( "11", normalizer.normalize( " 1 1" ) ); assertEquals( "11", normalizer.normalize( "1 1 " ) ); assertEquals( "11", normalizer.normalize( "1 1" ) ); assertEquals( "11", normalizer.normalize( " 1 1 " ) ); assertEquals( "123456789", normalizer.normalize( " 123 456 789 " ) ); }