	@Test
	public void testWrite_01010000000000_Der_noNamed() throws Exception
	{

		Scope scope = CoreModule.getInstance().createScope();
		Type type = UniversalType.BIT_STRING.ref().resolve( scope );
		Value value = CoreUtils.byteArrayFromBitString( VALUE_01010000000000B );
		try( AbstractBerWriter writer = mock( AbstractBerWriter.class ) )
		{
			when( writer.getRules() ).thenReturn( BerRules.DER );
			new BitStringBerEncoder().encode( new WriterContext( writer, scope, type, value, true ) );
			verify( writer ).getRules();
			verify( writer ).writeHeader( TAG, 3 );
			verify( writer ).write( 2 );
			verify( writer ).write( new byte[]{0x50, 0x0} );
			verifyNoMoreInteractions( writer );
		}
	}