### Question:
BTools { public static int getIndexCharsCount( int MaxIndex ) { int CharsCount = 1; if ( MaxIndex <= 0 ) return 1; CharsCount = (int)Math.log10( MaxIndex ) + 1; return CharsCount; }  static String getMtLvESS( int mtLv ); static String getMtLvISS(); static String getSpaces( int SpacesCount ); static String getSBln( boolean... blnA ); static String getSDbl( double Value, int DecPrec ); static String getSDbl( double Value, int DecPrec, boolean ShowPlusSign ); static String getSDbl( double Value, int DecPrec, boolean ShowPlusSign, int StringLength ); static String getSInt( int Value, int CharsCount ); static String getSInt( int Value, int CharsCount, char LeadingChar ); static String getSInt( int Value ); static String getSIntA( int... intA ); static int getIndexCharsCount( int MaxIndex ); static String getSLcDtTm(); static String getSLcDtTm( String FormatS );  }### Answer:
@Test public void testgetIndexCharsCount() throws Exception { assertEquals( 1, BTools.getIndexCharsCount( -5 ) ); assertEquals( 1, BTools.getIndexCharsCount( 5 ) ); assertEquals( 3, BTools.getIndexCharsCount( 345 ) ); }