diff --git a/der/src/asn1/application.rs b/der/src/asn1/application.rs
index dd0585ab4..452fc55d4 100644
--- a/der/src/asn1/application.rs
+++ b/der/src/asn1/application.rs
@@ -19,3 +19,30 @@ pub type ApplicationExplicitRef<'a, const TAG: u16, T> =
/// Application class, reference, IMPLICIT
pub type ApplicationImplicitRef<'a, const TAG: u16, T> =
CustomClassImplicitRef<'a, TAG, T, CLASS_APPLICATION>;
+
+#[cfg(test)]
+#[allow(clippy::unwrap_used)]
+mod tests {
+ use crate::{
+ asn1::{context_specific::ContextSpecificExplicit, OctetStringRef},
+ Decode, Encode,
+ };
+ use hex_literal::hex;
+
+ #[test]
+ fn round_trip() {
+ const EXAMPLE_BYTES: &[u8] = &hex!(
+ "A2 06"
+ "04 04"
+ "01020304"
+ );
+
+ let field =
+ ContextSpecificExplicit::<2, OctetStringRef<'_>>::from_der(EXAMPLE_BYTES).unwrap();
+ assert_eq!(field.value, OctetStringRef::new(&[1, 2, 3, 4]).unwrap());
+
+ let mut buf = [0u8; 128];
+ let encoded = field.encode_to_slice(&mut buf).unwrap();
+ assert_eq!(encoded, EXAMPLE_BYTES);
+ }
+}
diff --git a/der/src/asn1/context_specific.rs b/der/src/asn1/context_specific.rs
index 50267ce8a..09320449a 100644
--- a/der/src/asn1/context_specific.rs
+++ b/der/src/asn1/context_specific.rs
@@ -22,28 +22,6 @@ pub type ContextSpecificExplicitRef<'a, const TAG: u16, T> =
pub type ContextSpecificImplicitRef<'a, const TAG: u16, T> =
CustomClassImplicitRef<'a, TAG, T, CLASS_CONTEXT_SPECIFIC>;
-// pub fn decode_implicit<'a, R: Reader<'a>, T: Tagged + DecodeValue<'a>>(
-// number: TagNumber,
-// reader: &mut R,
-// ) -> Result